RecordFlux icon indicating copy to clipboard operation
RecordFlux copied to clipboard

Undetected invalid comparison with type name

Open treiher opened this issue 3 years ago • 0 comments

The use of a qualified type name in an expression should be detected as error. Currently, the following message specification is erroneously considered valid:

package Test is

   type T is mod 2 ** 8;

   type M is
      message
         A : T
            then null
               if A = Test::T;  --  Invalid
      end message;

end Test;

treiher avatar Jul 02 '21 09:07 treiher