|
@@ -32,8 +32,13 @@ type
|
|
|
|
|
|
class constructor Create;
|
|
class constructor Create;
|
|
class destructor Destroy;
|
|
class destructor Destroy;
|
|
|
|
+
|
|
|
|
+ procedure Test2;
|
|
|
|
+ procedure Test3;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+procedure Test4(AFoo: TFoo);
|
|
|
|
+
|
|
implementation
|
|
implementation
|
|
|
|
|
|
function TFoo.Test(n: TBar): TBar;
|
|
function TFoo.Test(n: TBar): TBar;
|
|
@@ -66,4 +71,25 @@ begin
|
|
F5 := Value;
|
|
F5 := Value;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+procedure TFoo.Test2;
|
|
|
|
+begin
|
|
|
|
+ if Self.C <> 1 then
|
|
|
|
+ halt(50);
|
|
|
|
+ if Self.F3 <> 7 then
|
|
|
|
+ halt(51);
|
|
|
|
+end;
|
|
|
|
+
|
|
|
|
+procedure TFoo.Test3;
|
|
|
|
+begin
|
|
|
|
+ Test4(Self);
|
|
|
|
+end;
|
|
|
|
+
|
|
|
|
+procedure Test4(AFoo: TFoo);
|
|
|
|
+begin
|
|
|
|
+ if AFoo.C <> 1 then
|
|
|
|
+ halt(100);
|
|
|
|
+ if AFoo.P3 <> 7 then
|
|
|
|
+ halt(101);
|
|
|
|
+end;
|
|
|
|
+
|
|
end.
|
|
end.
|