blob: 3047269c88d3f2bab77bef45a911a142361ac9aa [file] [log] [blame]
package Tagged5 is
type T is limited interface;
not overriding function Element
(Self : T;
Index : Positive)
return Integer is abstract
with Pre'Class => Index + Index ** 2 in 1 .. 10;
function First
(Self : T'Class)
return Integer
is (Self.Element (1));
procedure Dummy;
end Tagged5;