diff options
author | flywind <xzsflywind@gmail.com> | 2021-03-28 01:18:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-27 10:18:35 -0700 |
commit | d3705b253c155a6f129a7f26ea9435a0ab45143f (patch) | |
tree | 0f6ef73335170b7955c68bd9d6bbf0b64d5e3297 /tests | |
parent | 9c52009de61a119dda2def870e5fb21581dafc9a (diff) | |
download | Nim-d3705b253c155a6f129a7f26ea9435a0ab45143f.tar.gz |
close #5792 with testcase (#17536)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sets/t5792.nim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/sets/t5792.nim b/tests/sets/t5792.nim new file mode 100644 index 000000000..efc38b1bc --- /dev/null +++ b/tests/sets/t5792.nim @@ -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) |