Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected errors are reported around synthesized tuple error fields #56327

Open
AlekseyTs opened this issue Sep 10, 2021 · 0 comments
Open

Unexpected errors are reported around synthesized tuple error fields #56327

AlekseyTs opened this issue Sep 10, 2021 · 0 comments

Comments

@AlekseyTs
Copy link
Contributor

namespace System
{
    public record struct ValueTuple<T1, T2>
    {
        private ValueTuple(String x)
        {}
    }
}

Observed:

error CS0171: Field '(T1, T2).Item1' must be fully assigned before control is returned to the caller
error CS0171: Field '(T1, T2).Item2' must be fully assigned before control is returned to the caller

Expected:
No errors, emit succeeds, the type in metadata has no fields.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Sep 10, 2021
@jaredpar jaredpar removed the untriaged Issues and PRs which have not yet been triaged by a lead label Sep 13, 2021
@jaredpar jaredpar added this to the Compiler.Next milestone Sep 13, 2021
@jaredpar jaredpar modified the milestones: Compiler.Next, Backlog Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants