parent
9c52009de6
commit
d3705b253c
1 changed files with 17 additions and 0 deletions
17
tests/sets/t5792.nim
Normal file
17
tests/sets/t5792.nim
Normal 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)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue