diff --git a/tests/sets/t5792.nim b/tests/sets/t5792.nim new file mode 100644 index 0000000000..efc38b1bc3 --- /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)