X-Git-Url: https://deadsoftware.ru/gitweb?p=dsw-obn.git;a=blobdiff_plain;f=Test.obn;h=ecfde58b9f0e5fadb5eb6a9a884a62ede7a56351;hp=8aea2558a93efbec45e4a9117831ef6c41a9542a;hb=674b8e806962b40992601aca7f1234103a3aefb0;hpb=5d57ba4284b2808e0de685dcf3a7f78e477bc548 diff --git a/Test.obn b/Test.obn index 8aea255..ecfde58 100644 --- a/Test.obn +++ b/Test.obn @@ -1,17 +1,21 @@ MODULE Test; TYPE - Elem = POINTER TO ElemDesc; - ElemDesc = RECORD END; + A = POINTER TO RECORD B : B; END; - ElemMsg = RECORD END; - CopyMsg = RECORD (ElemMsg) a : Elem; END; + B = POINTER TO RECORD x : A END; - Alien = POINTER TO RECORD (ElemDesc) END; +VAR + a : A; -PROCEDURE HandleAlien (VAR msg: ElemMsg); +PROCEDURE Do; + TYPE + ListPtr = POINTER TO ListNode; + ListNode = RECORD next: ListPtr END; BEGIN - WITH msg: CopyMsg DO msg.a := NIL END -END HandleAlien; +END Do; +BEGIN + NEW(a); + a.B := NIL; END Test.