Fix type inference for BytesInExpr.

This commit is contained in:
Adam Sampson 2008-04-06 19:04:16 +00:00
parent 988c5c6fef
commit 3d1d2c4d9c

View File

@ -652,6 +652,9 @@ inferTypes = applyExplicitM9 doExpression doDimension doSubscript
Nothing -> return Nothing
e' <- inTypeContext ctx' $ inferTypes e
return $ A.SubscriptedExpr m s' e'
A.BytesInExpr _ _ -> noTypeContext $ descend outer
-- FIXME: ExprConstr
-- FIXME: AllocMobile
-- Other expressions don't modify the type context.
_ -> descend outer