better error messages: use <T1, T2> instead of (T1, T2) in order to prevent confusions with tuple types

This commit is contained in:
Araq 2018-02-10 20:39:05 +01:00
commit ef6eda4cb4
25 changed files with 62 additions and 62 deletions

View file

@ -1,6 +1,6 @@
discard """
line: 16
errormsg: "type mismatch: got (void)"
errormsg: "type mismatch: got <void>"
"""
# bug #950

View file

@ -1,5 +1,5 @@
discard """
errormsg: "type mismatch: got (FooRef[system.string])"
errormsg: "type mismatch: got <FooRef[system.string]>"
line: 15
"""

View file

@ -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:

View file

@ -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

View file

@ -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

View file

@ -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)

View file

@ -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.