[Git][ghc/ghc][wip/with2-primop] Lint: Fix shadowing

Ben Gamari gitlab at gitlab.haskell.org
Thu Apr 16 01:59:49 UTC 2020



Ben Gamari pushed to branch wip/with2-primop at Glasgow Haskell Compiler / GHC


Commits:
3f72af5f by Ben Gamari at 2020-04-15T21:57:50-04:00
Lint: Fix shadowing

- - - - -


1 changed file:

- compiler/GHC/Core/Lint.hs


Changes:

=====================================
compiler/GHC/Core/Lint.hs
=====================================
@@ -1124,8 +1124,8 @@ lintTyApp fun_ty arg_ty
 -----------------
 lintValApp :: CoreExpr -> LintedType -> LintedType -> LintM LintedType
 lintValApp arg fun_ty arg_ty
-  | Just (arg,res) <- splitFunTy_maybe fun_ty
-  = do { ensureEqTys arg arg_ty err1
+  | Just (arg_ty', _res_ty') <- splitFunTy_maybe fun_ty
+  = do { ensureEqTys arg_ty' arg_ty err1
        ; return res }
   | otherwise
   = failWithL err2



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3f72af5f4b764beca6a16229c647f59da9925477

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3f72af5f4b764beca6a16229c647f59da9925477
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/20200415/ff811844/attachment-0001.html>


More information about the ghc-commits mailing list