Fixed array constructor types that have been lifted to mobile arrays
This commit is contained in:
parent
12b3c4cd89
commit
9913bddb28
|
@ -83,6 +83,8 @@ fixConstructorTypes = occamOnlyPass "Fix the types of array constructors"
|
|||
doExpr _ dims s = diePC (findMeta s) $ formatCode
|
||||
("fixConstructorTypes found unexpected: %, " ++ show s) dims
|
||||
|
||||
doExpression (A.AllocMobile m _ e@(Just (A.Literal _ t (A.ArrayListLiteral {}))))
|
||||
= return $ A.AllocMobile m (A.Mobile t) e
|
||||
doExpression e = return e
|
||||
|
||||
-- | Handle ambiguities in the occam syntax that the parser can't resolve.
|
||||
|
|
Loading…
Reference in New Issue
Block a user