summary refs log tree commit diff stats
path: root/tests/vm/t17039.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vm/t17039.nim')
-rw-r--r--tests/vm/t17039.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/vm/t17039.nim b/tests/vm/t17039.nim
new file mode 100644
index 000000000..f92c93f30
--- /dev/null
+++ b/tests/vm/t17039.nim
@@ -0,0 +1,10 @@
+type
+  Obj1 = object
+    case kind: bool
+    of false:
+      field: seq[int]
+    else: discard
+
+static:
+  var obj1 = Obj1()
+  obj1.field.add(@[])