--  A block that declares a name its body already has (a parameter, a local) keeps its own
--  scope through a translation to Varc: printed as the body's own declarations, the name
--  would be declared twice.
with Ada.Text_IO;
procedure Main is
   procedure Show (X : Integer) is
   begin
      declare
         X : constant Integer := 2;
      begin
         Ada.Text_IO.Put_Line (Integer'Image (X));
      end;
   end Show;

   procedure Twice is
      Y : constant Integer := 3;
   begin
      Ada.Text_IO.Put_Line (Integer'Image (Y));
      declare
         Y : constant Integer := 4;
      begin
         Ada.Text_IO.Put_Line (Integer'Image (Y));
      end;
   end Twice;
begin
   Show (1);
   Twice;
end Main;
