Skip to content

Conversation

@AlekseyTs
Copy link
Contributor

@AlekseyTs AlekseyTs commented Nov 20, 2025

Due to an oversight it was compared to accessibility of extension block container, which is always public.

Fixes #81180

Relates to test plan #76130

…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
@AlekseyTs AlekseyTs requested review from jcouv and jjonescz November 20, 2025 20:57
@AlekseyTs AlekseyTs requested a review from a team as a code owner November 20, 2025 20:57
@AlekseyTs AlekseyTs added Area-Compilers Feature - Extension Everything The extension everything feature labels Nov 20, 2025
@jcouv jcouv self-assigned this Nov 21, 2025

compB = CreateCompilation(sourceB, references: [compA.EmitToImageReference()], assemblyName: "B", options: TestOptions.DebugExe);
CompileAndVerify(compB, expectedOutput: "TrueTrueFalse").VerifyDiagnostics();
_ = ErrorCode.ERR_BindToBogus;
Copy link
Member

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

Copy link
Contributor Author

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!

Copy link
Member

@jcouv jcouv left a 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;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_ = ErrorCode.ERR_BindToBogus;

@AlekseyTs
Copy link
Contributor Author

@jjonescz, @dotnet/roslyn-compiler For a second review

@AlekseyTs AlekseyTs enabled auto-merge (squash) November 21, 2025 15:54
@AlekseyTs AlekseyTs merged commit dece50b into dotnet:main Nov 21, 2025
24 of 25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers Feature - Extension Everything The extension everything feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internal extension property + InternalsVisibleTo triggers CS0570 (not supported by the language) in consumer assembly

3 participants