You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some constraints can be applied to shapes as well as structure members. If a constraint of the same type is applied to a structure member and the shape that the member targets, the trait applied to the member takes precedence.
(emphasis mine)
Note that the trait selectors for constraint traits allow them to be applied to arbitrary members. For example, the range trait's selector is :test(number, member > number).
The section on constraint trait precedence reads:
(emphasis mine)
Note that the trait selectors for constraint traits allow them to be applied to arbitrary members. For example, the range trait's selector is
:test(number, member > number)
.So this example model is accepted:
Does trait precedence apply in the case of a list member or a map's members, like in the above example?
The text was updated successfully, but these errors were encountered: