comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: "limited with" packages
Date: Wed, 20 Jun 2007 18:27:19 -0000
Date: 2007-06-20T18:27:19+00:00	[thread overview]
Message-ID: <1182364039.693013.20150@z28g2000prd.googlegroups.com> (raw)
In-Reply-To: <1182363216.698917.34860@d30g2000prg.googlegroups.com>

On Jun 20, 11:13 am, Adam Beneschan <a...@irvine.com> wrote:
> On Jun 20, 9:27 am, adam.betts...@gmail.com wrote:
> > This time the compiler is complaining that:
> > 1) procedure get_type_one in the package body of my_package is "not
> > fully conformant with declaration" in the spec and that,
> > 2) the type of t_1 does not match
>
> I think that's a compiler bug.

I am not sure about that. The first thing to correct correct the
syntax error as marked below

package body my_package is
 procedure get_type_one (t_2: in out type_two'class; t_1: out
other_package.type_one'class);  -- syntax error here!
 begin
   t_1 := create(t_2);
 end get_type_one;
end my_package;




  reply	other threads:[~2007-06-20 18:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-20 13:20 "limited with" packages adam.betts155
2007-06-20 15:38 ` Adam Beneschan
2007-06-20 16:06   ` adam.betts155
2007-06-20 16:32     ` Adam Beneschan
2007-06-20 16:27   ` adam.betts155
2007-06-20 18:13     ` Adam Beneschan
2007-06-20 18:27       ` Anh Vo [this message]
2007-06-20 18:44         ` Adam Beneschan
2007-06-21  8:13         ` adam.betts155
2007-06-22  5:10           ` Simon Wright
replies disabled

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