Bläddra i källkod

* 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 år sedan
förälder
incheckning
478a0376e3
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      compiler/pjvm.pas

+ 2 - 0
compiler/pjvm.pas

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