bugfixes; step one for 'var T' as return type support
This commit is contained in:
parent
e7135c449d
commit
2f066395ba
27 changed files with 234 additions and 68 deletions
15
tests/accept/run/tvarres1.nim
Normal file
15
tests/accept/run/tvarres1.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
discard """
|
||||
output: "45"
|
||||
"""
|
||||
|
||||
var
|
||||
g = 5
|
||||
|
||||
proc p(): var int =
|
||||
var bla = addr(g) #: array [0..7, int]
|
||||
result = bla[]
|
||||
|
||||
p() = 45
|
||||
|
||||
echo g
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue