Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 5, 2026

Description

The Roslyn 4.14.0 update introduces C# 14 compiler which changes codegen for iterator state machines, producing an expected IL2062 trim analysis warning. The test file already documented this behavior change (referencing issue #110553) but had the warning expectation commented out.

Uncommented the [UnexpectedWarning("IL2062", ...)] attribute in IteratorWithIntegerDataflow() method to indicate this warning is expected behavior with C# 14 compiler.

Customer Impact

None. This is a test-only change to handle expected compiler behavior.

Regression

No. This addresses a test failure caused by the compiler update, not a product regression.

Testing

The fix updates test expectations to match actual C# 14 compiler behavior. The IL2062 warning is documented as expected in #110553.

Risk

Minimal. Single-line change to test expectations that aligns with known and documented compiler behavior change.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@dotnet-policy-service dotnet-policy-service bot added the linkable-framework Issues associated with delivering a linker friendly framework label Jan 5, 2026
Copilot AI changed the title [WIP] Update dependencies from dotnet/roslyn Fix IL2062 trim analysis warning with C# 14 compiler in CompilerGeneratedCodeAccessedViaReflection test Jan 5, 2026
Copilot AI requested a review from sbomer January 5, 2026 19:40
@sbomer sbomer marked this pull request as ready for review January 5, 2026 19:43
@sbomer sbomer requested a review from marek-safar as a code owner January 5, 2026 19:43
@sbomer sbomer merged commit c85aabf into darc-release/9.0-staging-4da6a74f-9a77-4837-ae86-0b0dfcd7a5bd Jan 5, 2026
10 of 12 checks passed
@jkotas jkotas deleted the copilot/sub-pr-121343 branch January 6, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linkable-framework Issues associated with delivering a linker friendly framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants