Nim/tests/run/tnewderef.nim
2013-03-16 23:53:07 +01:00

11 lines
72 B
Nim

discard """
output: 3
"""
var x: ref int
new(x)
x[] = 3
echo x[]