comp.lang.ada
 help / color / mirror / Atom feed
* type extension at deeper accessibility level than parent
@ 2004-05-04  9:47 Xaelis
  2004-05-04 12:33 ` Martin Krischik
  2004-05-04 18:35 ` Stephen Leake
  0 siblings, 2 replies; 3+ messages in thread
From: Xaelis @ 2004-05-04  9:47 UTC (permalink / raw)


Hi,

I don't understand why i can't do somthing like that :

-- a.ads

package A is
   type X is abstract tagged null record;
end A;

-- b.ads

with A;

generic
   type P is private;
package B is
   type Y is new A.X with null record;
end B;

--  essai.adb

with B;

procedure Essai is
   package C is new B (Integer);
begin
   null;
end Essai;

I have :
essai.adb:4:04: instantiation error at b.ads:6
essai.adb:4:04: type extension at deeper accessibility level than parent

I don't know why is it a problem and who to solve it.
Thanks for your help.

-- 
Alexis Muller
Laboratoire d'Informatique Fondamentale de Lille (LIFL)
Universite de Lille 1 - 59655 Villeneuve d'Ascq Cedex
Web : http://www.lifl.fr/~mullera




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-04 18:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-04  9:47 type extension at deeper accessibility level than parent Xaelis
2004-05-04 12:33 ` Martin Krischik
2004-05-04 18:35 ` Stephen Leake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox