summaryrefslogtreecommitdiff
path: root/compiler/GHC
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2021-06-10 16:54:10 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-06-16 20:22:09 -0400
commita83d29995d096cca1ceff7042b73080db69219cf (patch)
tree4526c9e04fd39e60280675c3dc0b888d454d644d /compiler/GHC
parente25772a0a95fc9b606044e1afae31ff84790838a (diff)
downloadhaskell-a83d29995d096cca1ceff7042b73080db69219cf.tar.gz
Fix error message for record updates, #19972
Fix found by Adam Gundry.
Diffstat (limited to 'compiler/GHC')
-rw-r--r--compiler/GHC/Tc/Types/Origin.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Tc/Types/Origin.hs b/compiler/GHC/Tc/Types/Origin.hs
index e35f5ba385..cb15e962f6 100644
--- a/compiler/GHC/Tc/Types/Origin.hs
+++ b/compiler/GHC/Tc/Types/Origin.hs
@@ -526,7 +526,7 @@ exprCtOrigin (HsMultiIf _ rhs) = lGRHSCtOrigin rhs
exprCtOrigin (HsLet _ _ e) = lexprCtOrigin e
exprCtOrigin (HsDo {}) = DoOrigin
exprCtOrigin (RecordCon {}) = Shouldn'tHappenOrigin "record construction"
-exprCtOrigin (RecordUpd {}) = Shouldn'tHappenOrigin "record update"
+exprCtOrigin (RecordUpd {}) = RecordUpdOrigin
exprCtOrigin (ExprWithTySig {}) = ExprSigOrigin
exprCtOrigin (ArithSeq {}) = Shouldn'tHappenOrigin "arithmetic sequence"
exprCtOrigin (HsPragE _ _ e) = lexprCtOrigin e