Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jcouv
Copy link
Member

@jcouv jcouv commented Oct 1, 2025

Fixes #80512
Relates to test plan #76130

@jcouv jcouv self-assigned this Oct 1, 2025
@jcouv jcouv added Area-Compilers Feature - Extension Everything The extension everything feature labels Oct 1, 2025
@jcouv jcouv marked this pull request as ready for review October 2, 2025 19:16
@jcouv jcouv requested a review from a team as a code owner October 2, 2025 19:16
@jcouv jcouv requested review from AlekseyTs and jjonescz October 3, 2025 09:23
// Method begins at RVA 0x206f
// Code size 14 (0xe)
// Method begins at RVA 0x2050
// Code size 7 (0x7)
Copy link
Contributor

Choose a reason for hiding this comment

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

comp.VerifyEmitDiagnostics();

I think we should execute and observe what method is used.

.get instance string System.Runtime.CompilerServices.ExtensionMarkerAttribute::get_Name()
}
} // end of class System.Runtime.CompilerServices.ExtensionMarkerAttribute
""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
Copy link
Contributor

@AlekseyTs AlekseyTs Oct 3, 2025

Choose a reason for hiding this comment

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

[mscorlib]", Executio

I think we should execute and observe what method is used. #Closed

)
// Fields
.field private initonly string '<Name>k__BackingField'
// Methods
Copy link
Contributor

Choose a reason for hiding this comment

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

comp.VerifyEmitDiagnostics();

I think we should execute and observe what method is used.


var type = parameter.Type;
if (memberResolutionResult.Kind == MemberResolutionKind.ApplicableInExpandedForm &&
parameter.Ordinal == parameters.Length - 1)
Copy link
Contributor

@AlekseyTs AlekseyTs Oct 3, 2025

Choose a reason for hiding this comment

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

.Ordinal

Consider reviewing other places where the Ordinal property is used in the codebase and confirming that no adjustments necessary with respect to extensions. #Closed

Copy link
Member Author

Choose a reason for hiding this comment

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

I reviewed all the usages of Ordinal. Added some tests for that in last commit and fixed handling of this modifier.

@AlekseyTs
Copy link
Contributor

AlekseyTs commented Oct 3, 2025

Done with review pass (commit 1) #Closed

@jcouv jcouv marked this pull request as draft October 13, 2025 14:07
@jcouv jcouv marked this pull request as ready for review October 15, 2025 05:36
@jcouv jcouv requested a review from AlekseyTs October 15, 2025 17:42
Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM (commit 5)

@jcouv jcouv merged commit 701f4d6 into dotnet:main Oct 15, 2025
24 checks passed
@jcouv jcouv deleted the extensions-bug branch October 15, 2025 20:05
@jcouv jcouv changed the title Extensions: fix betterness with params Extensions: fix betterness with params and issues with this modifier Oct 15, 2025
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Oct 15, 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.

ambiguous between in Add(TValue) and Add(params IEnumerable<TValue>)

3 participants