fix the handling of wildcards

This commit is contained in:
krasimir
2009-05-22 21:47:32 +00:00
parent c520039f1c
commit a7900bfbc8
6 changed files with 9 additions and 7 deletions

View File

@@ -897,7 +897,7 @@ checkLType env trm typ0 = do
pattContext :: LTEnv -> Type -> Patt -> Check Context
pattContext env typ p = case p of
PV x | not (isWildIdent x) -> return [(x,typ)]
PV x -> return [(x,typ)]
PP q c ps | q /= cPredef -> do ---- why this /=? AR 6/1/2006
t <- checkErr $ lookupResType cnc q c
(cont,v) <- checkErr $ typeFormCnc t