Files
Nim/tests/sets/t5792.nim
2021-04-15 19:25:03 +02:00

18 lines
198 B
Nim

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