diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-03-05 16:02:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-05 16:02:34 +0100 |
commit | 83e715c5b6b2501c02459398a2f394c457758a55 (patch) | |
tree | 2855c11dba5742de851dab4935881e03467b49ed /tests/errmsgs/tsigmatch.nim | |
parent | 62c113ebc7ba6fa1594b24158a6cc3e1170f4030 (diff) | |
download | Nim-83e715c5b6b2501c02459398a2f394c457758a55.tar.gz |
fixes #5170 (#13589)
* fixes #5170 * make tests green
Diffstat (limited to 'tests/errmsgs/tsigmatch.nim')
-rw-r--r-- | tests/errmsgs/tsigmatch.nim | 6 |
1 files changed, 3 insertions, 3 deletions
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 |