fix some trivial errors in the test suite and some more regressions caused by tyTypeDesc[tyNone]

This commit is contained in:
Zahary Karadjov
2014-02-18 02:46:14 +02:00
parent 4d3846e26b
commit cda92048ba
10 changed files with 68 additions and 37 deletions

View File

@@ -1,5 +1,5 @@
discard """
output: "10\n10"
output: "10\n10\n1\n2\n3"
"""
proc test(x: proc (a, b: int): int) =
@@ -8,3 +8,11 @@ proc test(x: proc (a, b: int): int) =
test(proc (a, b): auto = a + b)
test do (a, b) -> auto: a + b
proc foreach[T](s: seq[T], body: proc(x: T)) =
for e in s:
body(e)
foreach(@[1,2,3]) do (x):
echo x