Fixed an inappropriate use of type equality that was causing problems with operators that return arrays
This commit is contained in:
parent
0f277365b5
commit
40fc118c31
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user