Browse Source

* fixed after implementation of Objective-C "related result type" convention

git-svn-id: trunk@42817 -
Jonas Maebe 6 years ago
parent
commit
59b846a2ec
3 changed files with 4 additions and 4 deletions
  1. 1 1
      tests/test/tobjc34.pp
  2. 2 2
      tests/test/tobjc36.pp
  3. 1 1
      tests/test/tobjcl2.pp

+ 1 - 1
tests/test/tobjc34.pp

@@ -15,7 +15,7 @@ type
     class procedure testClassOverride; override;
   end;
 
-  tmyoverrideclass = class of NSObject;
+  tmyoverrideclass = class of MyOverride;
 
 var
   selfshouldbe: tmyoverrideclass;

+ 2 - 2
tests/test/tobjc36.pp

@@ -57,7 +57,7 @@ begin
   b:=MyObject.alloc.init;
   b.extraproc(2);
   b.release;
-  c:=MyObject.alloc.init;
-  c.extraproc(2);
+  c:=MyObject2.alloc.init;
+  c.extraproc(3);
   c.release;
 end.

+ 1 - 1
tests/test/tobjcl2.pp

@@ -43,7 +43,7 @@ function MyDerivedClass.callprotectedfun: byte;
 var
   a: MyLibObjCClass;
 begin
-  a:=NSObject(MyDerivedClass.alloc).init;
+  a:=MyDerivedClass.alloc.init;
   a.fa:=55;
   a.fb:=66;
   if a.publicfun<>55 then