summary refs log blame commit diff stats
path: root/tests/objvariant/temptycaseobj.nim
blob: 2b2c405149aeb7a82c2a2fc7c59a5c03ae6d3278 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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