mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-18 23:11:36 +00:00
fixes #501
This commit is contained in:
@@ -873,4 +873,4 @@ proc genAsgn(p: BProc, e: PNode, fastAsgn: bool) =
|
||||
proc genStmts(p: BProc, t: PNode) =
|
||||
var a: TLoc
|
||||
expr(p, t, a)
|
||||
InternalAssert a.k in {locNone, locTemp}
|
||||
InternalAssert a.k in {locNone, locTemp, locLocalVar}
|
||||
|
||||
@@ -22,6 +22,9 @@ proc getPA(): PA =
|
||||
b: bool
|
||||
b = not false
|
||||
return nil
|
||||
|
||||
# bug #501
|
||||
proc f(): int = result
|
||||
|
||||
var
|
||||
global: int
|
||||
|
||||
Reference in New Issue
Block a user