diff options
Diffstat (limited to 'tests/reject')
-rwxr-xr-x | tests/reject/tconstraints.nim | 6 | ||||
-rwxr-xr-x | tests/reject/tinvalidnewseq.nim | 2 | ||||
-rwxr-xr-x | tests/reject/tnamedparams.nim | 2 | ||||
-rwxr-xr-x | tests/reject/tno_int_in_bool_context.nim | 2 | ||||
-rw-r--r-- | tests/reject/tnolen.nim | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/tests/reject/tconstraints.nim b/tests/reject/tconstraints.nim index aafe86911..e61095fff 100755 --- a/tests/reject/tconstraints.nim +++ b/tests/reject/tconstraints.nim @@ -1,6 +1,6 @@ discard """ - line: 15 - errormsg: "type mismatch: got (int)" + line: 16 + errormsg: "type mismatch: got (int literal(232))" """ proc myGenericProc[T: object|tuple|ptr|ref|distinct](x: T): string = @@ -12,7 +12,7 @@ type var x: TMyObj -assert myGenericProc(232) == "232" assert myGenericProc(x) == "(x: 0, y: 0)" +assert myGenericProc(232) == "232" diff --git a/tests/reject/tinvalidnewseq.nim b/tests/reject/tinvalidnewseq.nim index a8cc36783..957a25560 100755 --- a/tests/reject/tinvalidnewseq.nim +++ b/tests/reject/tinvalidnewseq.nim @@ -1,7 +1,7 @@ discard """ file: "tinvalidnewseq.nim" line: 15 - errormsg: "type mismatch: got (array[0..6, string], int)" + errormsg: "type mismatch: got (array[0..6, string], int literal(7))" """ import re, strutils diff --git a/tests/reject/tnamedparams.nim b/tests/reject/tnamedparams.nim index 5fb7699ba..9397fea4a 100755 --- a/tests/reject/tnamedparams.nim +++ b/tests/reject/tnamedparams.nim @@ -1,7 +1,7 @@ discard """ file: "tnamedparams.nim" line: 8 - errormsg: "type mismatch: got (input: string, filename: string, line: int, col: int)" + errormsg: "type mismatch: got (input: string, filename: string, line: int literal(1), col: int literal(23))" """ import pegs diff --git a/tests/reject/tno_int_in_bool_context.nim b/tests/reject/tno_int_in_bool_context.nim index c539bb556..755a02c0c 100755 --- a/tests/reject/tno_int_in_bool_context.nim +++ b/tests/reject/tno_int_in_bool_context.nim @@ -1,6 +1,6 @@ discard """ line: 6 - errormsg: "type mismatch: got (int) but expected 'bool'" + errormsg: "type mismatch: got (int literal(1)) but expected 'bool'" """ if 1: diff --git a/tests/reject/tnolen.nim b/tests/reject/tnolen.nim index 4e81d7dd6..e33086536 100644 --- a/tests/reject/tnolen.nim +++ b/tests/reject/tnolen.nim @@ -1,6 +1,6 @@ discard """ line: 8 - msg: "type mismatch: got (int)" + msg: "type mismatch: got (int literal(3))" """ # please finally disallow Len(3) |