From 27eb19cc48ad76868de921795a0895ddf89aefb3 Mon Sep 17 00:00:00 2001 From: flywind <43030857+xflywind@users.noreply.github.com> Date: Mon, 2 Nov 2020 15:56:51 +0800 Subject: fix #15145 (#15816) --- tests/enum/tenum_self.nim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/enum/tenum_self.nim (limited to 'tests/enum/tenum_self.nim') 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 -- cgit 1.4.1-2-gfad0