Small scope refactoring (#18263)
* Small scope refactoring * Add test for #10251 * Add inline where appropriate
This commit is contained in:
parent
0adb47aa15
commit
8c42f5be02
4 changed files with 33 additions and 24 deletions
12
tests/errmsgs/t10251.nim
Normal file
12
tests/errmsgs/t10251.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
discard """
|
||||
errormsg: "redefinition of 'foo'; previous declaration here: t10251.nim(9, 9)"
|
||||
line: 11
|
||||
column: 9
|
||||
"""
|
||||
|
||||
type
|
||||
Enum1 = enum
|
||||
foo, bar, baz
|
||||
Enum2 = enum
|
||||
foo, bar, baz
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue