Browse Source

* fixed check for objc-methods passed to selector()

git-svn-id: trunk@12871 -
Jonas Maebe 16 years ago
parent
commit
b1c32d899b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/nobjc.pas

+ 1 - 1
compiler/nobjc.pas

@@ -121,7 +121,7 @@ function tobjcselectornode.pass_typecheck: tnode;
       loadn:
         begin
           if (left.resultdef.typ=procdef) and
-             (po_objc in tprocdef(procdef).procoptions) then
+             (po_objc in tprocdef(left.resultdef).procoptions) then
             begin
               { ok }
             end