parent
03afbe00b9
commit
f73938218e
7 changed files with 67 additions and 14 deletions
|
|
@ -2,10 +2,11 @@
|
|||
proc p(a, b: int, c: proc ()) =
|
||||
c()
|
||||
|
||||
|
||||
p(1, 3):
|
||||
echo 1
|
||||
echo 3
|
||||
when false:
|
||||
# language spec changed:
|
||||
p(1, 3):
|
||||
echo 1
|
||||
echo 3
|
||||
|
||||
p(1, 1, proc() =
|
||||
echo 1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
discard """
|
||||
line: 12
|
||||
errormsg: "instantiate 'notConcrete' explicitly"
|
||||
disabled: "true"
|
||||
"""
|
||||
|
||||
proc wrap[T]() =
|
||||
|
|
|
|||
26
tests/types/temptyseqs.nim
Normal file
26
tests/types/temptyseqs.nim
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
discard """
|
||||
output: "1"
|
||||
"""
|
||||
|
||||
# bug #1708
|
||||
let foo = {
|
||||
"1" : (bar: @["1"]),
|
||||
"2" : (baz: @[])
|
||||
}
|
||||
|
||||
# bug #871
|
||||
|
||||
when true:
|
||||
import os
|
||||
|
||||
type
|
||||
In_out = tuple[src, dest, options: string]
|
||||
|
||||
let
|
||||
nil_var: In_out = ("hey"/"there", "something", nil)
|
||||
#nil_var2 = ("hey"/"there", "something", nil)
|
||||
|
||||
# bug #1721
|
||||
const foo2: seq[string] = @[]
|
||||
|
||||
echo foo[0][0][0]
|
||||
|
|
@ -32,7 +32,7 @@ proc buildSuiteContents(suiteName, suiteDesc, suiteBloc: PNimrodNode): tuple[tes
|
|||
testObj.testDesc = nil
|
||||
else:
|
||||
testObj.testDesc = child[2].strVal
|
||||
testObj.testBlock = child[3][6]
|
||||
testObj.testBlock = child[1]
|
||||
|
||||
tests.add(testObj)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue