tvarsection.nim 149 B

123456789101112
  1. var
  2. a {.compileTime.} = 2
  3. b = -1
  4. c {.compileTime.} = 3
  5. d = "abc"
  6. static:
  7. doAssert a == 2
  8. doAssert c == 3
  9. doAssert ($b & $d) == "-1abc"