make some tests green

This commit is contained in:
Zahary Karadjov
2014-03-16 18:34:37 +02:00
parent f0953db3ba
commit 49b0440c47
13 changed files with 45 additions and 30 deletions

View File

@@ -1,10 +1,9 @@
discard """
output: "Error: cannot evaluate at compile time: x"
line: 10
errormsg: "cannot evaluate at compile time: x"
line: 9
"""
var x: array[100, char]
var x: array[100, char]
template Foo : expr = x[42]
const myConst = foo

View File

@@ -1,9 +1,9 @@
discard """
output: "Error: cannot evaluate at compile time: x"
errormsg: "cannot evaluate at compile time: x"
line: 7
"""
proc bla(x:int) =
proc bla(x:int) =
when x == 0:
echo "oops"
else: