summary refs log tree commit diff stats
path: root/tests/vm
diff options
context:
space:
mode:
authorOscar NihlgÄrd <oscarnihlgard@gmail.com>2018-07-30 22:28:24 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-07-30 22:28:24 +0200
commit931273cc6be25a4d2bc79e8a0eff8781c1f4855e (patch)
treef3edf93c0a323e21da4204e35bfb5766c5d04b5c /tests/vm
parent5491f1f53b4011785b41b30897b73538d564fd55 (diff)
downloadNim-931273cc6be25a4d2bc79e8a0eff8781c1f4855e.tar.gz
Fix ref bug in vmgen (#8424)
Diffstat (limited to 'tests/vm')
-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