mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 06:45:27 +00:00
fixes #1323
This commit is contained in:
@@ -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]
|
||||
Reference in New Issue
Block a user