This commit is contained in:
Araq
2014-07-08 20:12:07 +02:00
parent 39ce17a73e
commit d80d8aa74d
3 changed files with 18 additions and 5 deletions

View File

@@ -11,7 +11,8 @@ true
true
nil'''
output: '''test'''
output: '''test
2'''
"""
type
@@ -78,3 +79,12 @@ macro testnilcheck(): stmt =
discard nilcheck()
testnilcheck()
# bug #1323
proc calc(): array[1, int] =
result[0].inc()
result[0].inc()
const c = calc()
echo c[0]