Proposal: Generic parameter constructor parameter constraints #9968
Labels
Area-Language Design
Feature Request
Resolution-Duplicate
The described behavior is tracked in another issue
I propose to allow the definition of constructor parameter constraints for generics. Currently the
new()
constraint is permitted, but parameters cannot be specified.Proposed syntax examples
A more practical example, which is useful when following a pattern of having a model filled by a data object.
The text was updated successfully, but these errors were encountered: