Fix ref bug in vmgen (#8424)
This commit is contained in:
parent
5491f1f53b
commit
931273cc6b
3 changed files with 50 additions and 54 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue