Do generic versions affect subtypes

If Status_Code in the following file is a static predicate and you assign an enum value outside of it’s predicate then no constraint error occurs but it does with a non generic version.

Does anyone happen to know if that is expected behaviour?

This certainly sounds like a compiler bug to me, but you need to provide a more complete example if you want someone else to check it … :wink:

1 Like