diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-11-02 15:56:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 08:56:51 +0100 |
commit | 27eb19cc48ad76868de921795a0895ddf89aefb3 (patch) | |
tree | 8863688995feff9eefd7e68492f4071df71bb075 /tests/enum/tenum_self.nim | |
parent | 98cec6b6922da62d9fc304de5c1d7cfb28fca879 (diff) | |
download | Nim-27eb19cc48ad76868de921795a0895ddf89aefb3.tar.gz |
fix #15145 (#15816)
Diffstat (limited to 'tests/enum/tenum_self.nim')
-rw-r--r-- | tests/enum/tenum_self.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/enum/tenum_self.nim b/tests/enum/tenum_self.nim new file mode 100644 index 000000000..27b1c3204 --- /dev/null +++ b/tests/enum/tenum_self.nim @@ -0,0 +1,11 @@ +discard """ + errormsg: "1 can't be converted to ErrorFoo" +""" + + +type + Foo = enum + Bar = 0.Foo + + ErrorFoo = enum + eBar = 1.ErrorFoo |