diff options
Diffstat (limited to 'tests/objvariant/temptycaseobj.nim')
-rw-r--r-- | tests/objvariant/temptycaseobj.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/objvariant/temptycaseobj.nim b/tests/objvariant/temptycaseobj.nim new file mode 100644 index 000000000..2b2c40514 --- /dev/null +++ b/tests/objvariant/temptycaseobj.nim @@ -0,0 +1,12 @@ +discard """ + errormsg: "identifier expected, but got 'keyword of'" + line: 11 +""" + +type + TMyEnum = enum enA, enU, enO + TMyCase = object + case e: TMyEnum + of enA: + of enU: x, y: int + of enO: a, b: string |