mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-16 20:49:21 +02:00
fcl-passrc: fixed parent of const external modifier
This commit is contained in:
parent
8168cc6ccc
commit
8f31992686
@ -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
|
||||
|
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user