فهرست منبع

* make sure that wrapped methods for property accesses are added to the
symtable of the current structdef

git-svn-id: branches/jvmbackend@18696 -

Jonas Maebe 14 سال پیش
والد
کامیت
478a0376e3
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      compiler/pjvm.pas

+ 2 - 0
compiler/pjvm.pas

@@ -598,6 +598,7 @@ implementation
             result:=pd;
             result:=pd;
             exit
             exit
           end;
           end;
+        symtablestack.push(obj.symtable);
         result:=tprocdef(pd.getcopy);
         result:=tprocdef(pd.getcopy);
         result.visibility:=vis;
         result.visibility:=vis;
         visname:=visibilityName[vis];
         visname:=visibilityName[vis];
@@ -612,6 +613,7 @@ implementation
         result.synthetickind:=tsk_callthrough;
         result.synthetickind:=tsk_callthrough;
         { so we know the name of the routine to call through to }
         { so we know the name of the routine to call through to }
         result.skpara:=pd;
         result.skpara:=pd;
+        symtablestack.pop(obj.symtable);
       end;
       end;
 
 
 end.
 end.