-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Extensions: Compare accessibility of implementation method with accessibility of declared extension method #81378
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
Conversation
…bility of declared extension method. Due to an oversight it was compared to accessibility of extension block container, which is always `public`. Fixes dotnet#81180
|
|
||
| compB = CreateCompilation(sourceB, references: [compA.EmitToImageReference()], assemblyName: "B", options: TestOptions.DebugExe); | ||
| CompileAndVerify(compB, expectedOutput: "TrueTrueFalse").VerifyDiagnostics(); | ||
| _ = ErrorCode.ERR_BindToBogus; |
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.
Probably was meant to be deleted
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.
Probably was meant to be deleted
Yes, thanks!
jcouv
left a comment
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.
LGTM Thanks (commit 1) modulo small test cleanup
|
|
||
| compB = CreateCompilation(sourceB, references: [compA.EmitToImageReference()], assemblyName: "B", options: TestOptions.DebugExe); | ||
| CompileAndVerify(compB, expectedOutput: "TrueTrueFalse").VerifyDiagnostics(); | ||
| _ = ErrorCode.ERR_BindToBogus; |
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.
| _ = ErrorCode.ERR_BindToBogus; |
|
@jjonescz, @dotnet/roslyn-compiler For a second review |
Due to an oversight it was compared to accessibility of extension block container, which is always
public.Fixes #81180
Relates to test plan #76130