summary refs log tree commit diff stats
path: root/tests/sets/t5792.nim
blob: 297a1fc1590bbcb24c49966f5435c0ffe935f5e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
discard """
  matrix: "--gc:refc; --gc:arc"
"""

type
  T = enum
    a
    b
    c
  U = object
    case k: T
    of a:
      x: int
    of {b, c} - {a}:
      y: int

doAssert U(k: b, y: 1).y == 1