Fix ref bug in vmgen (#8424)

This commit is contained in:
Oscar Nihlgård 2018-07-30 22:28:24 +02:00 • committed by Andreas Rumpf
commit 931273cc6b
3 changed files with 50 additions and 54 deletions

View file

@ -54,4 +54,9 @@ static:
new(s)
var ss = s
s[] = 1
doAssert ss[] == 1
doAssert ss[] == 1
static: # bug #8402
type R = ref object
var empty: R
let otherEmpty = empty