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

SA1106 false positive on class with no body #3837

Closed
CruseCtrl opened this issue May 14, 2024 · 5 comments
Closed

SA1106 false positive on class with no body #3837

CruseCtrl opened this issue May 14, 2024 · 5 comments

Comments

@CruseCtrl
Copy link

To reproduce:

public class A;

This incorrectly triggers SA1106 "The C# code contains an extra semicolon."

It feels like a similar thing to #3267, but that was for records and this is for classes

@bjornhellander
Copy link
Contributor

I can't reproduct this with the latest beta. The issue you refer to was about a record, but the fix was not specific to records. Looks like you are simply using an old release.

@CruseCtrl
Copy link
Author

You're right. I was using the latest stable version 1.1.118, but in the latest beta 1.2.0-beta.556 I can't reproduce the issue. I'll close this ticket. Thanks!

@CruseCtrl
Copy link
Author

Although it looks like the fix #3268 was merged nearly 4 years ago and version 1.1.118 was released on 29/04/2019. Is there going to be a new non-beta version any time soon?

@bjornhellander
Copy link
Contributor

Not likely. See for example #3500.

@sharwell
Copy link
Member

Duplicate of #3267

@sharwell sharwell marked this as a duplicate of #3267 May 21, 2024
@sharwell sharwell closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants