[Git][ghc/ghc][wip/spj-apporv-Oct24] fixing record update error messages

Apoorv Ingle (@ani) gitlab at gitlab.haskell.org
Mon Mar 10 15:58:22 UTC 2025


Apoorv Ingle pushed to branch wip/spj-apporv-Oct24 at Glasgow Haskell Compiler / GHC


Commits:
7789c823 by Apoorv Ingle at 2025-03-10T10:57:58-05:00
fixing record update error messages

- - - - -


1 changed file:

- compiler/GHC/Tc/Gen/Expr.hs


Changes:

=====================================
compiler/GHC/Tc/Gen/Expr.hs
=====================================
@@ -651,7 +651,7 @@ tcExpr expr@(RecordUpd { rupd_expr = record_expr
 
           -- Typecheck the expanded expression.
         ; expr' <- addErrCtxt err_ctxt $
-                   tcExpr (mkExpandedExpr expr ds_expr) (Check ds_res_ty)
+                   tcExpr ds_expr (Check ds_res_ty)
             -- NB: it's important to use ds_res_ty and not res_ty here.
             -- Test case: T18802b.
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7789c82366fd37d16a3d3c2f1d262c7f7cf4caf5

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7789c82366fd37d16a3d3c2f1d262c7f7cf4caf5
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250310/c0f5d99e/attachment.html>


More information about the ghc-commits mailing list