mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
minor correction
This commit is contained in:
@@ -367,8 +367,7 @@ proc destructiveMoveVar(n: PNode; c: var Con): PNode =
|
||||
|
||||
proc sinkParamIsLastReadCheck(c: var Con, s: PNode) =
|
||||
assert s.kind == nkSym and s.sym.kind == skParam
|
||||
discard isLastRead(s, c)
|
||||
if c.otherRead != nil:
|
||||
if not isLastRead(s, c):
|
||||
localError(c.graph.config, c.otherRead.info, "sink parameter `" & $s.sym.name.s &
|
||||
"` is already consumed at " & toFileLineCol(c. graph.config, s.info))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user