No output of wrongly typed cons
This commit is contained in:
parent
579153b679
commit
509b51d2de
1 changed files with 2 additions and 2 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue