summaryrefslogtreecommitdiff
path: root/compiler/coreSyn/CoreLint.hs
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@richarde.dev>2019-12-10 17:52:11 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-12-16 19:32:21 -0500
commitf9686e132a7fe5bbe517a4748fef6094fe74d43d (patch)
treea0ce85a36dd3c8c60c5101bd87f2f579b63cd4d4 /compiler/coreSyn/CoreLint.hs
parent75355fdef61da44a395ee9bfa2b9dca0eecea58a (diff)
downloadhaskell-f9686e132a7fe5bbe517a4748fef6094fe74d43d.tar.gz
Do more validity checks for quantified constraints
Close #17583. Test case: typecheck/should_fail/T17563
Diffstat (limited to 'compiler/coreSyn/CoreLint.hs')
-rw-r--r--compiler/coreSyn/CoreLint.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/coreSyn/CoreLint.hs b/compiler/coreSyn/CoreLint.hs
index def51f5010..3ebad40adb 100644
--- a/compiler/coreSyn/CoreLint.hs
+++ b/compiler/coreSyn/CoreLint.hs
@@ -2367,7 +2367,7 @@ lookupIdInScope id_occ
2 (pprBndr LetBind id_occ)
bad_global id_bnd = isGlobalId id_occ
&& isLocalId id_bnd
- && not (isWiredInName (idName id_occ))
+ && not (isWiredIn id_occ)
-- 'bad_global' checks for the case where an /occurrence/ is
-- a GlobalId, but there is an enclosing binding fora a LocalId.
-- NB: the in-scope variables are mostly LocalIds, checked by lintIdBndr,