Apoorv Ingle pushed to branch wip/ani/kill-popErrCtxt at Glasgow Haskell Compiler / GHC
Commits:
-
f782a81c
by Apoorv Ingle at 2025-10-27T12:10:33-05:00
1 changed file:
Changes:
| ... | ... | @@ -331,6 +331,7 @@ tcMatch tc_body pat_tys rhs_ty match |
| 331 | 331 | add_match_ctxt thing_inside = case ctxt of
|
| 332 | 332 | LamAlt LamSingle -> thing_inside
|
| 333 | 333 | StmtCtxt (HsDoStmt{}) -> thing_inside -- this is an expanded do stmt
|
| 334 | + RecUpd -> thing_inside -- record update is Expanded out so ignore it
|
|
| 334 | 335 | _ -> addErrCtxt (MatchInCtxt match) thing_inside
|
| 335 | 336 | |
| 336 | 337 | -------------
|