-
Notifications
You must be signed in to change notification settings - Fork 341
Open
Labels
Description
Describe the bug
If you try to write a mixed constraint like valueof string over a scalar initializer parameter, you get no diagnostics until that initializer is actually called. At the call site, the only error is about the value being unassignable to ErrorType, rather than anything to do with the invalid constraint.
Scalar initializers do not accept mixed constraints and behave as if all of their parameter constraints have valueof in front of them.
Reproduction
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable