Skip to content

Commit

Permalink
Semantic: .await does not return
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjermakov committed Apr 22, 2024
1 parent 3f5f42d commit 709573e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/semantic/expr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,6 @@ export const checkAwait = (unaryExpr: UnaryExpr, ctx: Context): void => {
addError(ctx, notInFnScopeError(ctx, unaryExpr.op))
return
}
scope.returns.push(operand)

upcast(operand, operand.type!, future, ctx)
}
Expand Down

0 comments on commit 709573e

Please sign in to comment.