summary refs log tree commit diff stats
path: root/tests/errmsgs/t10251.nim
blob: 19adf02ebc27903232af9ba3c5c8acb0cabb4553 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
discard """
  action:reject
  cmd: "nim check $options $file"
  nimout: '''
t10251.nim(19, 23) Error: redefinition of 'goo1'; previous declaration here: t10251.nim(19, 11)
'''
"""

# line 10
type
  Enum1 = enum
    foo, bar, baz
  Enum2 = enum
    foo, bar, baz


type
  Enum3 {.pure.} = enum # fixed (by accident?) in https://github.com/nim-lang/Nim/pull/18263
    goo0, goo1, goo2, goo1