Skip to content

Commit

Permalink
this is just stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco committed Dec 28, 2021
1 parent 7c700fd commit 5bc2419
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 1,487 deletions.
2 changes: 0 additions & 2 deletions compiler/sempass2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,6 @@ proc patchResult(c: PEffects; n: PNode) =
let fn = c.owner
if fn != nil and fn.kind in routineKinds and fn.ast != nil and resultPos < fn.ast.len:
n.sym = fn.ast[resultPos].sym
else:
localError(c.config, n.info, "routine has no return type, but .requires contains 'result'")
else:
for i in 0..<safeLen(n):
patchResult(c, n[i])
Expand Down
Loading

0 comments on commit 5bc2419

Please sign in to comment.