t10251.nim 389 B

1234567891011121314151617181920
  1. discard """
  2. action:reject
  3. cmd: "nim check $options $file"
  4. nimout: '''
  5. t10251.nim(19, 23) Error: redefinition of 'goo1'; previous declaration here: t10251.nim(19, 11)
  6. '''
  7. """
  8. # line 10
  9. type
  10. Enum1 = enum
  11. foo, bar, baz
  12. Enum2 = enum
  13. foo, bar, baz
  14. type
  15. Enum3 {.pure.} = enum # fixed (by accident?) in https://github.com/nim-lang/Nim/pull/18263
  16. goo0, goo1, goo2, goo1