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

Speculative changes to PrimaryConstructorBaseTypeSyntax #75546

Merged

Conversation

Orachor
Copy link

@Orachor Orachor commented Oct 17, 2024

As per the discussion in #75026 a PrimaryConstructorBaseTypeSyntax should only be used for speculation if we are making changes to it's ArgumentList and not the type definition part. This PR makes it so a PrimaryConstructorBaseTypeSyntax can be used as a SemanticRootOfOriginalExpression only if the original expression we are speculating on is inside the argument list.

Closes #75026

@Orachor Orachor requested a review from a team as a code owner October 17, 2024 08:11
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Oct 17, 2024
@Orachor Orachor marked this pull request as draft October 17, 2024 08:11
@dotnet-policy-service dotnet-policy-service bot added Community The pull request was submitted by a contributor who is not a Microsoft employee. VSCode labels Oct 17, 2024
@Orachor Orachor changed the title [WIP] Speculative changes to PrimaryConstructorBaseTypeSyntax Speculative changes to PrimaryConstructorBaseTypeSyntax Oct 17, 2024
@Orachor Orachor marked this pull request as ready for review October 17, 2024 09:36
@CyrusNajmabadi CyrusNajmabadi merged commit cb0f932 into dotnet:main Oct 17, 2024
25 checks passed
@CyrusNajmabadi
Copy link
Member

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IDE0001: False Positive for default primary constructor
3 participants