Update type parameter inference from constraints specification - #10307
Open
agocke wants to merge 1 commit into
Open
Update type parameter inference from constraints specification#10307agocke wants to merge 1 commit into
agocke wants to merge 1 commit into
Conversation
Align the proposal with ordinary-bound precedence and order-independent fixing in the prototype implementation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1fcf8092-6a5f-485e-891d-26fe95919661
jjonescz
reviewed
Aug 14, 2026
| > When §12.6.3.3 determines whether `Xᵢ` has a non-empty set of bounds, and when §12.6.3.13 fixes `Xᵢ`, the bounds of `Xᵢ` are its effective bounds. The operations in §12.6.3.10 | ||
| > through §12.6.3.12 that add bounds add ordinary bounds, except when those operations are performed as part of a constraint inference. | ||
|
|
||
| > *Note*: Constraint bounds are not combined with ordinary bounds. Constraint inference can therefore supply a type argument that ordinary inference could not determine, but does |
Member
There was a problem hiding this comment.
I assume this split is done for backwards compatibility. Consider noting that somewhere so the intent is clear.
Member
There was a problem hiding this comment.
I guess it's somewhat mentioned in the Drawbacks section.
jjonescz
approved these changes
Aug 14, 2026
333fred
approved these changes
Aug 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Align the type parameter inference from constraints proposal with the prototype implementation in dotnet/roslyn#84655.
The updated specification:
Champion issue: #9453
Implementation: dotnet/roslyn#84655