Files
Nim/tests/vm/twrongwhen.nim
2014-03-16 20:42:49 +02:00

14 lines
174 B
Nim

discard """
errormsg: "cannot evaluate at compile time: x"
line: 7
"""
proc bla(x:int) =
when x == 0:
echo "oops"
else:
echo "good"
bla(2) # echos "oops"