-
I think this will be more logical if we could classify conversion to a generic with set of constraints as possible, because it's possible. I think it's a fitting point to insert this functionality. Although, checking if a set of constraints denoted by generic is satisfied with a said type as a separate method somewhere in the API would be useful because this functionality is simply missing as was noted 4 years ago here #46998. It seems like language functionality is there, but Roslyn API can't keep up and cover it properly. Is this a desired change from the perspective of Roslyn devs? The community voiced the need for this. I'd like to make it work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It certainly couldn't be |
Beta Was this translation helpful? Give feedback.
It certainly couldn't be
ClassifyConversion
; attempting to convert from some concrete type to anITypeParameterSymbol
already has meaning. It would have to be a new API, and go through our API Review Process. As yet, no one has gone through this process; if you wanted to go through the process, we'd be happy to review your proposal.