|
@@ -11,13 +11,20 @@ uses
|
|
|
|
|
|
type
|
|
type
|
|
TMyTestClass = objcclass(NSObject)
|
|
TMyTestClass = objcclass(NSObject)
|
|
|
|
+ end;
|
|
|
|
+
|
|
|
|
+ TMyTestClass2 = objcclass(NSObject)
|
|
{ should give a hint because of a missing 'override' }
|
|
{ should give a hint because of a missing 'override' }
|
|
function hash: cuint;
|
|
function hash: cuint;
|
|
- end; external name 'NSZone';
|
|
|
|
|
|
+ end; external name 'TMyTestClass';
|
|
|
|
|
|
var
|
|
var
|
|
a: id;
|
|
a: id;
|
|
|
|
+ b: tmytestclass2;
|
|
begin
|
|
begin
|
|
|
|
+ b:=nil;
|
|
|
|
+ if assigned(b) then
|
|
|
|
+ ;
|
|
{ avoid warnings/hints about unused types/variables }
|
|
{ avoid warnings/hints about unused types/variables }
|
|
a:=TMyTestClass.alloc;
|
|
a:=TMyTestClass.alloc;
|
|
tmytestclass(a).Retain;
|
|
tmytestclass(a).Retain;
|