Apply dimensions to string literals too
This commit is contained in:
parent
0c1413c8da
commit
4b0e02a4ce
|
@ -776,7 +776,7 @@ table'
|
||||||
return t
|
return t
|
||||||
<|> getTypeContext defT
|
<|> getTypeContext defT
|
||||||
checkValidLiteralType defT t
|
checkValidLiteralType defT t
|
||||||
return $ A.Literal m t s
|
return $ A.Literal m (applyDimensions defT t) s
|
||||||
<|> do m <- md
|
<|> do m <- md
|
||||||
pushSubscriptTypeContext
|
pushSubscriptTypeContext
|
||||||
es <- tryXVX sLeft (sepBy1 expression sComma) sRight
|
es <- tryXVX sLeft (sepBy1 expression sComma) sRight
|
||||||
|
@ -793,8 +793,7 @@ table'
|
||||||
return t
|
return t
|
||||||
<|> getTypeContext defT
|
<|> getTypeContext defT
|
||||||
checkValidLiteralType defT t
|
checkValidLiteralType defT t
|
||||||
let t' = applyDimensions defT t
|
return $ A.Literal m (applyDimensions defT t) array
|
||||||
return $ A.Literal m t' array
|
|
||||||
<|> maybeSliced table A.SubscriptedExpr typeOfExpression
|
<|> maybeSliced table A.SubscriptedExpr typeOfExpression
|
||||||
<?> "table'"
|
<?> "table'"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user