better error messages: use <T1, T2> instead of (T1, T2) in order to prevent confusions with tuple types
This commit is contained in:
parent
51d81c4e23
commit
ef6eda4cb4
25 changed files with 62 additions and 62 deletions
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 16
|
||||
errormsg: "type mismatch: got (void)"
|
||||
errormsg: "type mismatch: got <void>"
|
||||
"""
|
||||
|
||||
# bug #950
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got (FooRef[system.string])"
|
||||
errormsg: "type mismatch: got <FooRef[system.string]>"
|
||||
line: 15
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 6
|
||||
errormsg: "type mismatch: got (int literal(1)) but expected 'bool'"
|
||||
errormsg: "type mismatch: got <int literal(1)> but expected 'bool'"
|
||||
"""
|
||||
|
||||
if 1:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
file: "tnocontains.nim"
|
||||
line: 10
|
||||
errormsg: "type mismatch: got (string, string)"
|
||||
errormsg: "type mismatch: got <string, string>"
|
||||
"""
|
||||
|
||||
# shouldn't compile since it doesn't do what you think it does without
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 16
|
||||
errormsg: "type mismatch: got (BPtr) but expected 'APtr = ptr[RegionA, int]'"
|
||||
errormsg: "type mismatch: got <BPtr> but expected 'APtr = ptr[RegionA, int]'"
|
||||
"""
|
||||
|
||||
type
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 6
|
||||
errormsg: "type mismatch: got (type int)"
|
||||
errormsg: "type mismatch: got <type int>"
|
||||
"""
|
||||
# bug #3079, #1146
|
||||
echo repr(int)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
file: "ttypenoval.nim"
|
||||
line: 38
|
||||
errormsg: "type mismatch: got (type int) but expected 'int'"
|
||||
errormsg: "type mismatch: got <type int> but expected 'int'"
|
||||
"""
|
||||
|
||||
# A min-heap.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue