Made sure that record literals are pulled up (perhaps this accidentally lost in the past?)

This commit is contained in:
Neil Brown 2009-03-31 16:51:02 +00:00
parent 2941cbd049
commit 8ee32f0795

View File

@ -443,6 +443,10 @@ pullUp pullUpArraysInsideRecords = pass "Pull up definitions"
case e' of
A.Literal {} -> pull t e'
_ -> return e'
A.Record _ ->
case e' of
A.Literal {} -> pull t e'
_ -> return e'
_ -> return e'
where
pull :: A.Type -> A.Expression -> PassM A.Expression