require errormsg to be specified before file.

This commit is contained in:
Arne Döring 2018-11-29 16:07:51 +01:00 • committed by Araq
commit 1105d03644
264 changed files with 305 additions and 623 deletions

View file

@ -1,6 +1,6 @@
discard """
line: 11
errormsg: "cannot convert array[0..0, string] to varargs[string]"
line: 11
"""
proc f(v: varargs[string]) =

View file

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

View file

@ -1,8 +1,7 @@
discard """
line: 6
errormsg: "type mismatch: got <int literal(1)> but expected 'bool'"
line: 6
"""
if 1:
echo "wtf?"

View file

@ -1,7 +1,7 @@
discard """
errormsg: "type mismatch: got <string, string>"
file: "tnocontains.nim"
line: 10
errormsg: "type mismatch: got <string, string>"
"""
# shouldn't compile since it doesn't do what you think it does without

View file

@ -1,7 +1,7 @@
discard """
errormsg: "type mismatch"
file: "trefs.nim"
line: 20
errormsg: "type mismatch"
"""
# test for ref types (including refs to procs)
@ -18,6 +18,3 @@ var p: TProc
p = foo
write(stdout, "success!")
p = wrongfoo #ERROR_MSG type mismatch

View file

@ -1,6 +1,6 @@
discard """
line: 16
errormsg: "type mismatch: got <BPtr> but expected 'APtr = ptr[RegionA, int]'"
line: 16
"""
type

View file

@ -1,6 +1,6 @@
discard """
line: 6
errormsg: "type mismatch: got <type int>"
line: 6
"""
# bug #3079, #1146
echo repr(int)

View file

@ -1,6 +1,6 @@
discard """
line: 9
errormsg: "'repr' doesn't support 'void' type"
line: 9
"""
# bug #2879

View file

@ -1,7 +1,7 @@
discard """
errormsg: "type mismatch: got <type int> but expected 'int'"
file: "ttypenoval.nim"
line: 38
errormsg: "type mismatch: got <type int> but expected 'int'"
"""
# A min-heap.
@ -51,5 +51,3 @@ var
newBinHeap(heap, 256)
add(heap, 1, 100)
print(heap)

View file

@ -1,8 +1,7 @@
discard """
errormsg: "illegal recursion in type \'Uint8\'"
file: "typredef.nim"
line: 7
errormsg: "illegal recursion in type \'Uint8\'"
"""
type
Uint8 = Uint8 #ERROR_MSG illegal recursion in type 'Uint8'