Files
Raphaël AMIARD c26fb6a63d V825-017: Adapt to new MetadataField.
Annotate the fields to correspond to the notion of equality we want in
Libadalang:

* dottable_subp is metadata in the original sense of the concept, and
  thus should not be taken into account

* primitive_type/primitive_real_type is more like rebindings, it's
  actually information that conceptually creates a new node, and as such
  should be taken into account.
2022-09-27 14:43:01 +02:00

14 lines
263 B
Ada

package Pkg is
type Prim_T is tagged null record;
function Primitive (Self : Prim_T) return Integer
is (Integer (12));
type Der_T is new Prim_T with null record;
function Prim_2 (Self : Der_T) return Integer is
(Self.Primitive);
end Pkg;