Fixed the type-checking for the allocation of mobile arrays
This commit is contained in:
parent
535054eed0
commit
d419c89843
|
@ -347,8 +347,11 @@ checkAllocMobile m rawT me
|
|||
= do t <- resolveUserType m rawT
|
||||
case t of
|
||||
A.Mobile innerT ->
|
||||
do case innerT of
|
||||
A.Array ds _ -> ok --mapM_ (checkFullDimension m) ds
|
||||
do case (innerT, me) of
|
||||
-- Array dimensions must be known if there's no initialiser.
|
||||
-- If there is an initialiser, we'll get the dimensions from
|
||||
-- that.
|
||||
(A.Array ds _, Nothing) -> mapM_ (checkFullDimension m) ds
|
||||
_ -> ok
|
||||
case me of
|
||||
Just e ->
|
||||
|
|
Loading…
Reference in New Issue
Block a user