fcl-passrc: parser: external record field

git-svn-id: trunk@39302 -
This commit is contained in:
Mattias Gaertner 2018-06-25 16:05:30 +00:00
parent 2bc313fbe5
commit 936a26ed29
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -7202,9 +7202,9 @@ end;
procedure TTestResolver.TestRecord_VarExternal;
begin
exit;
StartProgram(false);
Add([
'{$modeswitch externalclass}',
'type',
' TRec = record',
' Id: longint external name ''$Id'';',