mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 06:50:40 +02:00
fcl-passrc: parser: external record field
git-svn-id: trunk@39302 -
This commit is contained in:
parent
2bc313fbe5
commit
936a26ed29
@ -4198,7 +4198,7 @@ begin
|
||||
|
||||
// Note: external members are allowed for non external classes too
|
||||
ExternalStruct:=(msExternalClass in CurrentModeSwitches)
|
||||
and (Parent is TPasClassType);
|
||||
and ((Parent is TPasClassType) or (Parent is TPasRecordType));
|
||||
|
||||
H:=H+CheckHint(Nil,False);
|
||||
if Full or ExternalStruct then
|
||||
|
@ -7202,9 +7202,9 @@ end;
|
||||
|
||||
procedure TTestResolver.TestRecord_VarExternal;
|
||||
begin
|
||||
exit;
|
||||
StartProgram(false);
|
||||
Add([
|
||||
'{$modeswitch externalclass}',
|
||||
'type',
|
||||
' TRec = record',
|
||||
' Id: longint external name ''$Id'';',
|
||||
|
Loading…
Reference in New Issue
Block a user