mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
* fixes #15280 [backport:1.2] * make tests green again * adapt tests
This commit is contained in:
@@ -502,7 +502,7 @@ weirdScopes()
|
||||
# bug #14985
|
||||
proc getScope(): string =
|
||||
if true:
|
||||
return "hi"
|
||||
"hi"
|
||||
else:
|
||||
"else"
|
||||
|
||||
@@ -512,14 +512,14 @@ proc getScope3(): string =
|
||||
try:
|
||||
"try"
|
||||
except:
|
||||
return "except"
|
||||
"except"
|
||||
|
||||
echo getScope3()
|
||||
|
||||
proc getScope2(): string =
|
||||
case true
|
||||
of true:
|
||||
return "bye"
|
||||
"bye"
|
||||
else:
|
||||
"else"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user