3 with Generic_Inst10_Pkg
; use Generic_Inst10_Pkg
;
5 procedure Generic_Inst10
is
7 function Image
(S
: XString
) return String is (S
.To_String
);
10 type Left_Type
(<>) is private;
11 type Right_Type
(<>) is private;
12 with function Image
(L
: Left_Type
) return String is <>;
13 with function Image
(L
: Right_Type
) return String is <>;
14 procedure G
(Left
: Left_Type
; Right
: Right_Type
);
16 procedure G
(Left
: Left_Type
; Right
: Right_Type
) is
17 A
: String := Image
(Left
) & Image
(Right
);
22 procedure My_G
is new G
(XString
, XString
);