twrongconst.nim 149 B

12345678910
  1. discard """
  2. errormsg: "cannot evaluate at compile time: x"
  3. line: 7
  4. """
  5. var x: array[100, char]
  6. template foo : char = x[42]
  7. const myConst = foo