summary refs log blame commit diff stats
path: root/tests/objvariant/temptycaseobj.nim
blob: 5c012746ecb25915db12db18db848cf57ca93212 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

           
                                                         










                              
discard """
  line: 11
  errormsg: "identifier expected, but found 'keyword of'"
"""

type
  TMyEnum = enum enA, enU, enO
  TMyCase = object
    case e: TMyEnum
    of enA:
    of enU: x, y: int
    of enO: a, b: string