Specify type inference for constructor calls - #10312
Draft
MadsTorgersen wants to merge 4 commits into
Draft
Conversation
Align constructor inference with shared type groups, generalized target-aware inference, and a combined overload candidate set across type arities. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This was referenced Aug 17, 2026
Point to the independent generalized-inference and type-group proposals, streamline the combined candidate-set rationale, and align standard links with alpha-v12. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Compress the proposal around its literal syntax delta, constructor candidate construction, combined overload set, and owned compatibility questions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Compress the proposal around constructor-specific syntax, candidate construction, combined overload resolution, compatibility, and unresolved extensions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Summary
Champion issue: #9627
Specification
The authoritative draft is MadsTorgersen/csharpstandard#3. It updates
standard/expressions.md, primarily §12.6.3 type inference and §12.8.17.2 object creation expressions.Compatibility and open design
Same-name types can add candidates or introduce lookup and overload-resolution ambiguities. Target-derived bounds can alter inference, and dynamic construction still requires a singleton bound type group. The proposal retains phased fallback as the principal alternative and leaves dynamic inference and initializer-derived bounds open.