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
commit f25454d5c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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