Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Get rid of one call"
This reverts commit e37836f.
  • Loading branch information
Smaug123 committed Aug 21, 2023
commit 7d3fc81b50adbd072dc9b715201f348880094201
4 changes: 3 additions & 1 deletion src/Compiler/Checking/PostInferenceChecks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,9 @@ and CheckExprLinear (cenv: cenv) (env: env) expr (ctxt: PermitByRefExpr) (acc :
| Expr.DebugPoint (_, innerExpr) ->
CheckExprLinear cenv env innerExpr ctxt acc

| _ -> failwith "unreachable: it was the caller's responsibility to ensure we were in one of the above cases"
| _ ->
// not a linear expression
CheckExpr cenv env expr ctxt

/// Check a resumable code expression (the body of a ResumableCode delegate or
/// the body of the MoveNextMethod for a state machine)
Expand Down