parent
98cec6b692
commit
27eb19cc48
2 changed files with 17 additions and 4 deletions
11
tests/enum/tenum_self.nim
Normal file
11
tests/enum/tenum_self.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
discard """
|
||||
errormsg: "1 can't be converted to ErrorFoo"
|
||||
"""
|
||||
|
||||
|
||||
type
|
||||
Foo = enum
|
||||
Bar = 0.Foo
|
||||
|
||||
ErrorFoo = enum
|
||||
eBar = 1.ErrorFoo
|
||||
Loading…
Add table
Add a link
Reference in a new issue