Buglet in Core Lint
authorsimonpj@microsoft.com <unknown>
Fri, 3 Sep 2010 23:44:57 +0000 (23:44 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 3 Sep 2010 23:44:57 +0000 (23:44 +0000)
compiler/coreSyn/CoreLint.lhs

index 732ab7a..c267c96 100644 (file)
@@ -335,7 +335,7 @@ lintAltBinders :: OutType     -- Scrutinee type
 lintAltBinders scrut_ty con_ty [] 
   = checkTys con_ty scrut_ty (mkBadPatMsg con_ty scrut_ty) 
 lintAltBinders scrut_ty con_ty (bndr:bndrs)
-  | isTyVar bndr
+  | isTyCoVar bndr
   = do { con_ty' <- lintTyApp con_ty (mkTyVarTy bndr)
        ; lintAltBinders scrut_ty con_ty' bndrs }
   | otherwise