comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Type invariants and private extensions?
Date: Mon, 11 Sep 2017 15:48:25 -0700 (PDT)
Date: 2017-09-11T15:48:25-07:00	[thread overview]
Message-ID: <bda9d9ea-3e3f-4b4f-ae11-5e605af50067@googlegroups.com> (raw)
In-Reply-To: <op6v4m$tmm$1@gioia.aioe.org>

On Monday, September 11, 2017 at 3:27:54 PM UTC-6, Victor Porton wrote:
>
> package P1 is
> 
    type T1 is new T with private;
  PRIVATE
>   type T1 is new T with null record
>     with Type_Invariant => True;
> 
> end P1;
> 
> 
> $ gnatgcc -gnatc -c p1.ads 
> p1.ads:6:10: aspect "Type_Invariant" only allowed for private type or 
> corresponding full view

The error-message is telling you that "Type_Invariant" is only applicable to private-types, or the full-view of a private-type.


  parent reply	other threads:[~2017-09-11 22:48 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11 19:51 Type invariants and private extensions? Victor Porton
2017-09-11 20:00 ` Egil H H
2017-09-11 20:48   ` Victor Porton
2017-09-11 21:19     ` Egil H H
2017-09-11 21:27       ` Victor Porton
2017-09-11 21:49         ` Egil H H
2017-09-11 22:00           ` Victor Porton
2017-09-11 22:06             ` Egil H H
2017-09-12  7:30             ` Dmitry A. Kazakov
2017-09-11 22:00         ` Jere
2017-09-11 22:02           ` Victor Porton
2017-09-12 18:26             ` Jeffrey R. Carter
2017-09-12 18:54               ` Victor Porton
2017-09-12 19:56                 ` Jeffrey R. Carter
2017-09-12 20:08                   ` Victor Porton
2017-09-12 22:34                     ` Shark8
2017-09-12 22:59                       ` Victor Porton
2017-09-13  4:21                         ` Jere
2017-09-13  4:28                           ` Jere
2017-09-13  4:34                             ` Jere
2017-09-14 13:52                           ` Victor Porton
2017-09-15  0:48                             ` Jere
2017-09-16 14:22                               ` Victor Porton
2017-09-14  7:28                         ` Shark8
2017-09-14 13:56                           ` Victor Porton
2017-09-14 13:58                             ` Victor Porton
2017-09-11 22:48         ` Shark8 [this message]
2017-10-02 23:16         ` Randy Brukardt
replies disabled

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