We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is similar to #863, for which the fix apparently did not cover all situations.
Create a solution with 2 projects
In one project, add the following code:
internal interface IFoo { bool IsFoo { get; } } public class Foo : IFoo { public bool IsFoo { get; set; } }
Foo
internal class Bar { public void MethodOne(Foo foo) { var x = foo.IsFoo; } }
A violation of S3242 should not be raised, because IFoo is not accessible from the project defining Bar.
IFoo
A violation of S3242 is raised. Note: If the Bar class is made public, that does not happen.
Bar
The text was updated successfully, but these errors were encountered:
valhristov
No branches or pull requests
Description
This is similar to #863, for which the fix apparently did not cover all situations.
Repro steps
Create a solution with 2 projects
In one project, add the following code:
Foo
, and add the following code:Expected behavior
A violation of S3242 should not be raised, because
IFoo
is not accessible from the project defining Bar.Actual behavior
A violation of S3242 is raised.
Note: If the
Bar
class is made public, that does not happen.Related information
The text was updated successfully, but these errors were encountered: