--  A generic public child's private part sees its parent's private part (RM 8.2(5)),
--  in each instance as in a non-generic child: Secret and T's component X.
with Ada.Text_IO; with Par.Pub; with Par.Gen;
procedure Main is
   package G is new Par.Gen (1);
begin
   Ada.Text_IO.Put_Line (Integer'Image (Par.Pub.Get) & Integer'Image (G.Get));
end Main;
