Apoorv Ingle pushed to branch wip/ani/kill-popErrCtxt at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • compiler/GHC/Tc/Gen/Match.hs
    ... ... @@ -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
     -------------