t21896.nim 137 B

12345678910
  1. discard """
  2. errormsg: "cannot assign local to global variable"
  3. line: 7
  4. """
  5. proc example(a:int) =
  6. let b {.global.} = a
  7. example(1)