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

Fix 'create constructor' with types without bodies #76083

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

CyrusNajmabadi
Copy link
Member

fixes #72340

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner November 26, 2024 00:20
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 26, 2024

#region constructors

#endregion

public C(int i)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is it about calling EnsureOpenAndCloseBraceTokens that caused this constructor to change where it was generated?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind. I should have just looked.

if (!hasMembers)
{
// Bug 539673: If there are no members, take any trivia that
// belongs to the end brace and attach it to the opening brace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE 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.

[Bug]: Code fix Convert to regular constructor generates incorrectly for class without body
3 participants