--  Inside a generic library child, its expanded name (`Outer.Gen`, `Outer.Add`) denotes the
--  current instance, as its simple name does (RM 8.6(18)): its formals and its declarations.
with Ada.Text_IO; with Outer.Gen; with Outer.Add;
procedure Main is
   package G is new Outer.Gen (21, Character);
   function Plus_Two is new Outer.Add (2);
begin
   Ada.Text_IO.Put_Line (Integer'Image (G.Twice) & " " & G.Mode'Image (G.Pick (-1)) & " " & Character'Image (G.First));
   Ada.Text_IO.Put_Line (Natural'Image (Plus_Two (40)));
end Main;
