Apply dimensions to string literals too

This commit is contained in:
Adam Sampson 2007-05-03 03:10:20 +00:00
parent 0c1413c8da
commit 4b0e02a4ce

View File

@ -776,7 +776,7 @@ table'
return t
<|> getTypeContext defT
checkValidLiteralType defT t
return $ A.Literal m t s
return $ A.Literal m (applyDimensions defT t) s
<|> do m <- md
pushSubscriptTypeContext
es <- tryXVX sLeft (sepBy1 expression sComma) sRight
@ -793,8 +793,7 @@ table'
return t
<|> getTypeContext defT
checkValidLiteralType defT t
let t' = applyDimensions defT t
return $ A.Literal m t' array
return $ A.Literal m (applyDimensions defT t) array
<|> maybeSliced table A.SubscriptedExpr typeOfExpression
<?> "table'"