X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=6fae5299c4ceb508ddf3708622d39e419e562a12;hb=0a98f4783fa8f0a7c1aaaf3dbeaf0aec8f4652b9;hp=3c862c1d5917486426e84aa32439b268bb8baf88;hpb=10288ed60f876a14746b17976fd9d84ed58042cc;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 3c862c1..6fae529 100644 --- a/Test.obn +++ b/Test.obn @@ -1,28 +1,3 @@ MODULE Test; -TYPE - Object = RECORD - mth : PROCEDURE; - END; - -VAR - p : PROCEDURE; - o, a : Object; - -PROCEDURE X; -END X; - -PROCEDURE Z(VAR g : Object); -BEGIN - g.mth; -END Z; - -BEGIN - p := X; - ASSERT(p # NIL); - o.mth := X; - ASSERT(o.mth # NIL); - a := o; - ASSERT(a.mth # NIL); - Z(a); END Test.