twrongwhen.nim 174 B

1234567891011121314
  1. discard """
  2. errormsg: "cannot evaluate at compile time: x"
  3. line: 7
  4. """
  5. proc bla(x:int) =
  6. when x == 0:
  7. echo "oops"
  8. else:
  9. echo "good"
  10. bla(2) # echos "oops"