X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=sidebyside;f=sem.icl;h=21fd2355931b3aefb51f8571aee0149ff07a3b84;hb=b0a8d161ec4566b50febd63640fab70f8081c685;hp=b74ee762352b3673de1774f888151da39e2587a5;hpb=0f420d3c45aa26b770bf2bda3588ffcc2ed574cf;p=cc1516.git diff --git a/sem.icl b/sem.icl index b74ee76..21fd235 100644 --- a/sem.icl +++ b/sem.icl @@ -132,7 +132,6 @@ typeExpr (VarExpr p (VarDef ident fs)) = gets (\(st, r)->'Map'.get ident st) >>= \mt->case mt of Nothing = liftT $ Left $ UndeclaredVariableError p ident Just t = unify t fs - typeOp2 :: Expr Expr Op2 [Type] Type -> Env Type typeOp2 e1 e2 op ts ret = typeExpr e1 >>= \t1-> typeExpr e2 >>= \t2-> unify t1 t2 >>= \t3->if (isMember t3 ts) (pure ret)