mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 10:24:44 +00:00
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)
|
||||
Reference in New Issue
Block a user