tredefinition.nim 157 B

1234567891011121314
  1. discard """
  2. errormsg: "redefinition of 'a`gensym"
  3. line: 9
  4. """
  5. # bug #10180
  6. proc f() =
  7. template t() =
  8. var a = 1
  9. var a = 2
  10. echo a
  11. t()
  12. f()