소스 검색

* fixed the type of self in Objective-C category methods

git-svn-id: trunk@30948 -
Jonas Maebe 10 년 전
부모
커밋
fa9ba26cb4
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      compiler/pparautl.pas

+ 2 - 0
compiler/pparautl.pas

@@ -235,6 +235,8 @@ implementation
                   type or equal to an instance of it }
                 if is_objectpascal_helper(tprocdef(pd).struct) then
                   selfdef:=tobjectdef(tprocdef(pd).struct).extendeddef
+                else if is_objccategory(tprocdef(pd).struct) then
+                  selfdef:=tobjectdef(tprocdef(pd).struct).childof
                 else
                   selfdef:=tprocdef(pd).struct;
                 { Generate self variable, for classes we need