close #5792 with testcase (#17536)

This commit is contained in:
flywind
2021-03-28 01:18:35 +08:00
committed by GitHub
parent 9c52009de6
commit d3705b253c

17
tests/sets/t5792.nim Normal file
View File

@@ -0,0 +1,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
discard U(k: b, y: 1)