Improve vm support for ref types
This commit is contained in:
parent
d08b9eb673
commit
236bc06b5f
4 changed files with 79 additions and 23 deletions
7
tests/vm/tnilref.nim
Normal file
7
tests/vm/tnilref.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
errormsg: "attempt to access a nil address"
|
||||
"""
|
||||
|
||||
static:
|
||||
var s: ref int
|
||||
s[] = 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue