tglobal2.nim 129 B

12345678910
  1. # b.nim
  2. import a_module
  3. doAssert foo() == 0
  4. proc hello(x: type) =
  5. var s {.global.} = default(x)
  6. doAssert s == 0
  7. hello(int)