--  The image of a class-wide value is its specific type's (Ada 2022, RM 4.10; D262).
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
   package Shapes is
      type Shape is tagged record
         X : Integer;
      end record;
      type Circle is new Shape with record
         Radius : Natural;
      end record;
   end Shapes;
   use Shapes;
   procedure Show (S : Shape'Class) is
   begin
      Put_Line (S'Image);
   end Show;
begin
   Show (Shape'(X => 1));
   Show (Circle'(X => 2, Radius => 3));
end Main;
