close #5792 with testcase (#17536)

This commit is contained in:
flywind 2021-03-28 01:18:35 +08:00 • committed by GitHub
commit d3705b253c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)