fixes #1323
This commit is contained in:
parent
39ce17a73e
commit
d80d8aa74d
3 changed files with 18 additions and 5 deletions
|
|
@ -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]
|
||||
Loading…
Add table
Add a link
Reference in a new issue