fcl-passrc: fixed parent of const external modifier

This commit is contained in:
mattias 2019-02-26 19:05:59 +00:00
parent 8168cc6ccc
commit 8f31992686
2 changed files with 2 additions and 1 deletions

View File

@ -3866,7 +3866,7 @@ begin
NextToken;
if not (CurToken in [tkChar,tkString,tkIdentifier]) then
ParseExcTokenError(TokenInfos[tkString]);
Result.ExportName:=DoParseExpression(Parent);
Result.ExportName:=DoParseExpression(Result);
Result.IsConst:=true; // external const is readonly
end
else if CurToken=tkSemicolon then

View File

@ -1637,6 +1637,7 @@ begin
' s = ''abc'';', // string lit
' c: char = s[1];', // array params
' a: array[1..2] of longint = (3,4);', // anonymous array, range, array values
' PI: Double; external name ''Math.PI'';',
'resourcestring',
' rs = ''rs'';',
'implementation']);