Adjusted the Types module to use the new types in array constructors

This commit is contained in:
Neil Brown 2008-03-19 13:21:42 +00:00
parent ff9c0549ca
commit 7baeb318f2

View File

@ -240,7 +240,8 @@ typeOfExpression e
else typeOfArrayList [A.UnknownDimension] bt
A.ExprConstr m (A.RepConstr _ rep e) ->
do t <- typeOfExpression e
typeOfArrayList [A.Dimension $ countReplicator rep] t
count <- evalIntExpression $ countReplicator rep
typeOfArrayList [A.Dimension count] t
A.AllocMobile _ t _ -> return t
--}}}