diff --git a/frontends/OccamInferTypes.hs b/frontends/OccamInferTypes.hs index 064c1fc..4518a2e 100644 --- a/frontends/OccamInferTypes.hs +++ b/frontends/OccamInferTypes.hs @@ -272,7 +272,7 @@ inferTypes = occamOnlyPass "Infer types" -- Must have right argument types: , and $ zipWith (maybe True) (map typeEqForOp ts) mts -- Must have right return type: - , ctx == A.Infer || ctx == rt + , ctx == A.Infer || ctx `typeEqForOp` rt ] pickTypes :: [Maybe A.Type] -> [Maybe A.Type]