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
With the introduction of the new values syntax, parameters are treated as values over types if a constraint supports both.
This was done intentionally for scalar literal values.
However, this change also causes model expressions and tuples to show a deprecation warning when passed somewhere (model template parameter/decorator) where they can be interpreted as either a Type or a Value. TypeSpec should still allow using tuples/model expressions as types when constraints are mixed.
Describe the bug
With the introduction of the new values syntax, parameters are treated as values over types if a constraint supports both.
This was done intentionally for scalar literal values.
However, this change also causes model expressions and tuples to show a deprecation warning when passed somewhere (model template parameter/decorator) where they can be interpreted as either a Type or a Value. TypeSpec should still allow using tuples/model expressions as types when constraints are mixed.
Reproduction
playground link
Checklist
The text was updated successfully, but these errors were encountered: