3 pragma Restrictions
(No_Finalization
);
6 type T
is tagged null record;
7 type T1
is new T
with record
10 function F
return T
'Class;
13 Str
: String (1..80) := (1..80=>'x');
16 function F
return T
'Class is
17 X
: T1
:= T1
'(A => Str);
23 Obj : P.T'class := P.F;
25 if P.T1 (Obj).A /= Str then
26 raise Constraint_Error;