summary refs log tree commit diff stats
path: root/tests/reject/temptycaseobj.nim
blob: 5977cb92bfc20e49e15c467b2394d4ba84853833 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
discard """
  line: 11
  errormsg: "identifier expected, but found '[same indentation]'"
"""

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