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,7 +1,6 @@
|
|||
discard """
|
||||
action: "reject"
|
||||
line: 29
|
||||
errormsg: "\'vectFunc\' doesn't have a concrete type, due to unspecified generic parameters."
|
||||
line: 28
|
||||
"""
|
||||
|
||||
type
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
discard """
|
||||
action: "reject"
|
||||
line: 7
|
||||
errormsg: "cannot instantiate: \'T\'"
|
||||
line: 6
|
||||
"""
|
||||
|
||||
proc foo[T](x: T) =
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 6
|
||||
errormsg: "cannot instantiate: \'T\'"
|
||||
line: 6
|
||||
"""
|
||||
|
||||
proc m[T](x: T): int = discard
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
discard """
|
||||
file: "tbintre2.nim"
|
||||
output: "helloworld99110223"
|
||||
"""
|
||||
# Same test, but check module boundaries
|
||||
|
|
@ -26,6 +25,3 @@ for y in items(r2):
|
|||
stdout.write(y)
|
||||
|
||||
#OUT helloworld99110223
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
discard """
|
||||
file: "tbintree.nim"
|
||||
output: "helloworld99110223"
|
||||
"""
|
||||
type
|
||||
|
|
@ -103,5 +102,3 @@ when isMainModule:
|
|||
stdout.write(y)
|
||||
|
||||
#OUT helloworld99110223
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
discard """
|
||||
file: "texplicitgeneric1.nim"
|
||||
output: "Key: 12 value: 12Key: 13 value: 13 Key: A value: 12 Key: B value: 13"
|
||||
"""
|
||||
# test explicit type instantiation
|
||||
|
|
@ -33,6 +32,3 @@ c.add('A', "12")
|
|||
c.add('B', "13")
|
||||
for k, v in items(c):
|
||||
stdout.write(" Key: ", $k, " value: ", v)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue