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

Moving a type nested in a record to its own file creates a duplicate primary constructor declaration in the new partial record declaration #62713

Closed
jnm2 opened this issue Jul 16, 2022 · 1 comment
Labels
Area-IDE Bug Feature - Records Records help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@jnm2
Copy link
Contributor

jnm2 commented Jul 16, 2022

Version Used: 17.3.0-p3.0

R.cs
record R(int A)
{
    class C { }
}

πŸ’‘ Move type to R.C.cs:

R.cs
// ❌ CS8863 Only a single record partial declaration may have a parameter list
//              ↓↓↓↓↓↓↓
partial record R(int A)
{
}
R.C.cs
// ❌ CS8863 Only a single record partial declaration may have a parameter list
//              ↓↓↓↓↓↓↓
partial record R(int A)
{
    class C { }
}
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 16, 2022
@jnm2 jnm2 changed the title ' Moving a type nested in a record to its own file creates a duplicate primary constructor declaration in the new partial record declaration Jul 16, 2022
@vatsalyaagrawal vatsalyaagrawal added Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 28, 2022
@vatsalyaagrawal vatsalyaagrawal added this to the Backlog milestone Jul 28, 2022
@github-project-automation github-project-automation bot moved this to InQueue in Small Fixes Oct 22, 2024
@CyrusNajmabadi
Copy link
Member

Fixed with #72695

@github-project-automation github-project-automation bot moved this from InQueue to Completed in Small Fixes Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug Feature - Records Records help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
Status: Completed
Development

No branches or pull requests

4 participants