diff options
author | Yuriy Glukhov <yutiy.glukhov@gmail.com> | 2016-04-09 01:56:16 +0300 |
---|---|---|
committer | Yuriy Glukhov <yutiy.glukhov@gmail.com> | 2016-05-18 13:51:07 +0300 |
commit | f46d40cb379aed51d0bc2567afe2604d5a9db3f8 (patch) | |
tree | a7cce65e0a4c784c97ac934f939c391dde03fd80 | |
parent | d3e9589b3d6ae682c7f42103e5ae3b255e6a77fb (diff) | |
download | Nim-f46d40cb379aed51d0bc2567afe2604d5a9db3f8.tar.gz |
Added a test case
-rw-r--r-- | tests/enum/tenum.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/enum/tenum.nim b/tests/enum/tenum.nim index b081212e6..6d9bdd539 100644 --- a/tests/enum/tenum.nim +++ b/tests/enum/tenum.nim @@ -6,3 +6,9 @@ type var en: E en = a + +# Bug #4066 +import macros +macro genEnum(): untyped = newNimNode(nnkEnumTy).add(newEmptyNode(), newIdentNode("geItem1")) +type GeneratedEnum = genEnum() +doAssert(type(geItem1) is GeneratedEnum) |