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

           
                                                       










                              
discard """
  line: 11
  errormsg: "identifier expected, but got '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