require errormsg to be specified before file.
This commit is contained in:
parent
ca394ebd95
commit
1105d03644
264 changed files with 305 additions and 623 deletions
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 11
|
||||
errormsg: "cannot convert array[0..0, string] to varargs[string]"
|
||||
line: 11
|
||||
"""
|
||||
|
||||
proc f(v: varargs[string]) =
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 16
|
||||
errormsg: "type mismatch: got <void>"
|
||||
line: 16
|
||||
"""
|
||||
|
||||
# bug #950
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
discard """
|
||||
line: 6
|
||||
errormsg: "type mismatch: got <int literal(1)> but expected 'bool'"
|
||||
line: 6
|
||||
"""
|
||||
|
||||
if 1:
|
||||
echo "wtf?"
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 16
|
||||
errormsg: "type mismatch: got <BPtr> but expected 'APtr = ptr[RegionA, int]'"
|
||||
line: 16
|
||||
"""
|
||||
|
||||
type
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 6
|
||||
errormsg: "type mismatch: got <type int>"
|
||||
line: 6
|
||||
"""
|
||||
# bug #3079, #1146
|
||||
echo repr(int)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 9
|
||||
errormsg: "'repr' doesn't support 'void' type"
|
||||
line: 9
|
||||
"""
|
||||
|
||||
# bug #2879
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue