Browse Source

pastojs: fixed rtti property override

git-svn-id: trunk@36783 -
Mattias Gaertner 8 years ago
parent
commit
c77b403928
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/pastojs/src/fppas2js.pp

+ 3 - 1
packages/pastojs/src/fppas2js.pp

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