pastojs: class in implementation

git-svn-id: trunk@35920 -
This commit is contained in:
Mattias Gaertner 2017-04-23 14:18:16 +00:00
parent f95be9c80d
commit 1279451c0f

View File

@ -7430,7 +7430,7 @@ begin
Call.Expr:=CreateMemberExpression([FBuiltInNames[pbivnRTL],FBuiltInNames[pbifnCreateClass]]);
// add parameter: owner. For top level class, the module is the owner.
if El.Parent is TImplementationSection then
if (El.Parent<>nil) and (El.Parent.ClassType=TImplementationSection) then
OwnerName:=AContext.GetLocalName(El.Parent)
else
OwnerName:=AContext.GetLocalName(El.GetModule);