No output of wrongly typed cons

This commit is contained in:
Rakarake 2023-04-27 15:09:39 +02:00
parent 579153b679
commit 509b51d2de

View file

@ -263,9 +263,9 @@ morphPattern p expectedType = case p of
T.PVar ident -> return (M.PVar (ident, expectedType), Set.singleton ident)
T.PLit lit -> return (M.PLit (convertLit lit, expectedType), Set.empty)
T.PCatch -> return (M.PCatch, Set.empty)
T.PEnum ident -> do morphCons expectedType ident
T.PEnum ident -> do --morphCons expectedType ident
return (M.PEnum ident, Set.empty)
T.PInj ident pts -> do morphCons expectedType ident
T.PInj ident pts -> do --morphCons expectedType ident
ts' <- mapM (getMonoFromPoly . snd) pts
let pts' = zip (map fst pts) ts'
psSets <- mapM (uncurry morphPattern) pts'