Add a testcase for #14480. Fixes #14480 (#15037)

This commit is contained in:
Danil Yarantsev
2020-07-22 10:52:38 +03:00
committed by GitHub
parent 503c5e0520
commit f25454d5c6

View File

@@ -257,3 +257,10 @@ echo "new line before - ", newline
newline.insert(indent, 0)
echo "new line after - ", newline
# bug #14480
proc hello(): int =
result = 42
var leaves {.global.} = hello()
doAssert leaves == 42