summary refs log tree commit diff stats
path: root/tests/vm/tref.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vm/tref.nim')
-rw-r--r--tests/vm/tref.nim7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/vm/tref.nim b/tests/vm/tref.nim
index 27b7bf313..f5cd23da5 100644
--- a/tests/vm/tref.nim
+++ b/tests/vm/tref.nim
@@ -54,4 +54,9 @@ static:
     new(s)
     var ss = s
     s[] = 1
-    doAssert ss[] == 1
\ No newline at end of file
+    doAssert ss[] == 1
+
+static: # bug #8402
+  type R = ref object
+  var empty: R
+  let otherEmpty = empty
\ No newline at end of file