comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: Generic Parent Specification
Date: Wed, 12 Feb 2020 11:25:38 -0800 (PST)
Date: 2020-02-12T11:25:38-08:00	[thread overview]
Message-ID: <fc2511ac-36b0-4a9f-8ffa-29f497959a57@googlegroups.com> (raw)
In-Reply-To: <7b1e3204-6a95-4d33-a967-a458566208f2@googlegroups.com>

You missed the with clause:

with X.Y;
generic
  with package K1 is new X    (<>);
  with package K2 is new K1.Y (<>);
package P is
  o1 : K2.T2 := 0;
  o2 : K1.T1 := o1;
end P;

Note the name X.Y in the with clause and K1.Y in the instantiation.

      parent reply	other threads:[~2020-02-12 19:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-11 11:15 Generic Parent Specification sbelmont700
2020-02-11 12:33 ` Egil H H
2020-02-12 10:24   ` sbelmont700
2020-02-12 19:25 ` AdaMagica [this message]
replies disabled

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