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

When instantiating a nested class in C#, Visual Studio inappropriately adds "()" before the dot in between the outer class and the nested class. #74650

Open
vsfeedback opened this issue Aug 5, 2024 · 0 comments

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
Reproduction steps

  • Define a class and a nested class inside of it, for example "class A" nested inside "class Test"
  • Somewhere else in the code, try to instantiate the nested class by typing "new Test.A()"

Current Behavior:

  • Visual Studio will always insert parentheses after you type the dot, which results in something like "new Test().A()"

Expected Behavior:

  • Visual Studio does not add "()" when you type the dot

badparens.PNG


Original Comments

Feedback Bot on 8/4/2024, 10:06 PM:

(private comment, text removed)


Original Solutions

(no solutions)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 5, 2024
@Cosifne Cosifne self-assigned this Aug 12, 2024
@Cosifne Cosifne added IntelliSense-Completion and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 12, 2024
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