pastojs: fixed rtti property override

git-svn-id: trunk@36783 -
This commit is contained in:
Mattias Gaertner 2017-07-24 13:33:17 +00:00
parent 1ff7f061ff
commit c77b403928

View File

@ -9570,6 +9570,7 @@ var
Flags: Integer;
GetterPas, StoredPas, SetterPas: TPasElement;
ResultTypeInfo: TJSElement;
VarType: TPasType;
begin
Result:=nil;
OptionsEl:=nil;
@ -9596,7 +9597,8 @@ begin
Call.AddArg(CreateLiteralNumber(Prop,Flags));
// add resulttype
ResultTypeInfo:=CreateTypeInfoRef(Prop.VarType,AContext,Prop);
VarType:=AContext.Resolver.GetPasPropertyType(Prop);
ResultTypeInfo:=CreateTypeInfoRef(VarType,AContext,Prop);
if ResultTypeInfo<>nil then
Call.AddArg(ResultTypeInfo)
else