Small scope refactoring (#18263)

* Small scope refactoring

* Add test for #10251

* Add inline where appropriate
This commit is contained in:
Clyybber 2021-06-14 19:19:58 +02:00 • committed by GitHub
commit 8c42f5be02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 24 deletions

12
tests/errmsgs/t10251.nim Normal file
View 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