summary refs log tree commit diff stats
path: root/tests/sets/t5792.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sets/t5792.nim')
-rw-r--r--tests/sets/t5792.nim17
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..297a1fc15
--- /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
+
+doAssert U(k: b, y: 1).y == 1