bugfixes; step one for 'var T' as return type support

This commit is contained in:
Araq 2011-07-28 00:53:52 +02:00
commit 2f066395ba
27 changed files with 234 additions and 68 deletions

16
tests/reject/tvarres2.nim Normal file
View file

@ -0,0 +1,16 @@
discard """
file: "tvarres1.nim"
line: 11
errormsg: "expression has no address"
"""
var
g = 5
proc p(): var int =
result = 89
p() = 45
echo g