Improve vm support for ref types

This commit is contained in:
Oscar Nihlgård 2018-06-26 21:18:55 +02:00
commit 236bc06b5f
4 changed files with 79 additions and 23 deletions

7
tests/vm/tnilref.nim Normal file
View file

@ -0,0 +1,7 @@
discard """
errormsg: "attempt to access a nil address"
"""
static:
var s: ref int
s[] = 1