From 83e715c5b6b2501c02459398a2f394c457758a55 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 5 Mar 2020 16:02:34 +0100 Subject: fixes #5170 (#13589) * fixes #5170 * make tests green --- tests/errmsgs/tsigmatch.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/errmsgs/tsigmatch.nim') diff --git a/tests/errmsgs/tsigmatch.nim b/tests/errmsgs/tsigmatch.nim index 21e2c217d..6b85d1408 100644 --- a/tests/errmsgs/tsigmatch.nim +++ b/tests/errmsgs/tsigmatch.nim @@ -98,13 +98,13 @@ expression: fun1(default(Mystring), "asdf") ## line 100 -block: +when true: # bug #11061 Type mismatch error "first type mismatch at" points to wrong argument/position # Note: the error msg now gives correct position for mismatched argument type A = object of RootObj B = object of A - +block: proc f(b: B) = discard proc f(a: A) = discard @@ -163,7 +163,7 @@ block: var foo = "" f(foo, a0 = 12) -block: +when true: type Mystring = string type MyInt = int proc fun1(a1: MyInt, a2: Mystring) = discard -- cgit 1.4.1-2-gfad0