RecordFlux icon indicating copy to clipboard operation
RecordFlux copied to clipboard

Verification of size compatibility for sequences

Open treiher opened this issue 4 years ago • 0 comments

The size of a sequence must be multiple of its element size (at least for sequences of scalars). The following specification should be rejected:

package Test is

   type T is mod 2 ** 16;

   type A is sequence of T;

   type M is
      message
         A : A
            with Size => 8;
      end message;

end Test;

treiher avatar Feb 26 '21 15:02 treiher