Revert "fixes #15280 [backport:1.2] (#15281)" (#15700)

This reverts commit 3f00a738db.
This commit is contained in:
Clyybber 2020-10-24 11:45:18 +02:00 • committed by GitHub
commit d4022ebe53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 49 deletions

View file

@ -502,7 +502,7 @@ weirdScopes()
# bug #14985
proc getScope(): string =
if true:
"hi"
return "hi"
else:
"else"
@ -512,14 +512,14 @@ proc getScope3(): string =
try:
"try"
except:
"except"
return "except"
echo getScope3()
proc getScope2(): string =
case true
of true:
"bye"
return "bye"
else:
"else"