You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MODULE example;
TYPE
(** A rope. *)
T* = POINTER TO TDesc;
TDesc = EXTENSIBLE RECORD
END;
(** Alias for type Rope.T. *)
Rope* = T;
SubNode = POINTER TO SubDesc;
SubDesc = RECORD (TDesc)
END;
CatNode = POINTER TO CatDesc;
CatDesc = RECORD (TDesc)
left: T;
right: T;
END;
PROCEDURE print (r: T);
BEGIN
WITH r: SubNode DO
| r: CatNode DO
print (r.left);
print (r.right);
ELSE
END;
END print;
END example.
The solution taken from BlackBox.
The text was updated successfully, but these errors were encountered:
The problem mentioned in vishapoberon/compiler#98
Simplified source:
The solution taken from BlackBox.
The text was updated successfully, but these errors were encountered: