mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-29 10:43:57 +00:00
make some tests green
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user