mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-16 23:59:05 +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;
|
NextToken;
|
||||||
if not (CurToken in [tkChar,tkString,tkIdentifier]) then
|
if not (CurToken in [tkChar,tkString,tkIdentifier]) then
|
||||||
ParseExcTokenError(TokenInfos[tkString]);
|
ParseExcTokenError(TokenInfos[tkString]);
|
||||||
Result.ExportName:=DoParseExpression(Parent);
|
Result.ExportName:=DoParseExpression(Result);
|
||||||
Result.IsConst:=true; // external const is readonly
|
Result.IsConst:=true; // external const is readonly
|
||||||
end
|
end
|
||||||
else if CurToken=tkSemicolon then
|
else if CurToken=tkSemicolon then
|
||||||
|
@ -1637,6 +1637,7 @@ begin
|
|||||||
' s = ''abc'';', // string lit
|
' s = ''abc'';', // string lit
|
||||||
' c: char = s[1];', // array params
|
' c: char = s[1];', // array params
|
||||||
' a: array[1..2] of longint = (3,4);', // anonymous array, range, array values
|
' a: array[1..2] of longint = (3,4);', // anonymous array, range, array values
|
||||||
|
' PI: Double; external name ''Math.PI'';',
|
||||||
'resourcestring',
|
'resourcestring',
|
||||||
' rs = ''rs'';',
|
' rs = ''rs'';',
|
||||||
'implementation']);
|
'implementation']);
|
||||||
|
Loading…
Reference in New Issue
Block a user