-
Notifications
You must be signed in to change notification settings - Fork 231
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
S3459: add reproducer for #9106 #9112
Conversation
e0c3670
to
3331eaa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the namespace for simplicity; then it's good (no further review required).
namespace Repro9106 | ||
{ | ||
public class MyClass | ||
{ | ||
private int _foo; // Noncompliant FP | ||
|
||
public ref int Foo => ref _foo; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is simpler:
namespace Repro9106 | |
{ | |
public class MyClass | |
{ | |
private int _foo; // Noncompliant FP | |
public ref int Foo => ref _foo; | |
} | |
} | |
public class Repro_9106 | |
{ | |
private int _foo; // Noncompliant FP | |
public ref int Foo => ref _foo; | |
} |
|
|
Reproducer for #9106