comp.lang.ada
 help / color / mirror / Atom feed
* A problem with "interface"
@ 2009-02-05 15:05 Robert_Matthews
  2009-02-05 16:13 ` Jacob Sparre Andersen
  2009-02-05 16:14 ` Adam Beneschan
  0 siblings, 2 replies; 4+ messages in thread
From: Robert_Matthews @ 2009-02-05 15:05 UTC (permalink / raw)


In using interface types with GNAT I have encountered a problem.
Consider the following packages:

package Int is

   type A is interface;
   type B is interface;

   procedure P (Param1 : A; Param2 : B'Class) is abstract;

end Int;

with Int;
package Client is

   type Client_A is new Int.A with null record;
   type Client_B is new Int.B with null record;

   overriding
   procedure Client_P (Param1 : Client_A; Param2 : Client_B'Class);

end Client;

On compiling, GNAT says "Client_P" does not override anything.
Am I making a dumb mistake here - or is it GNAT?

The version of GNAT is GNAT GPL 2008 (20080521).

Thanks in advance,

Robert



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

end of thread, other threads:[~2009-02-06 14:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-05 15:05 A problem with "interface" Robert_Matthews
2009-02-05 16:13 ` Jacob Sparre Andersen
2009-02-05 16:14 ` Adam Beneschan
2009-02-06 14:08   ` Robert_Matthews

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