Browse Source

fcl-passrc: parser: external record field

git-svn-id: trunk@39302 -
Mattias Gaertner 7 years ago
parent
commit
936a26ed29
2 changed files with 2 additions and 2 deletions
  1. 1 1
      packages/fcl-passrc/src/pparser.pp
  2. 1 1
      packages/fcl-passrc/tests/tcresolver.pas

+ 1 - 1
packages/fcl-passrc/src/pparser.pp

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

+ 1 - 1
packages/fcl-passrc/tests/tcresolver.pas

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