Skip to content

Preserve anonymous function parameter attributes#2808

Merged
DavidObando merged 1 commit into
mainfrom
fix/issue-2807
Jul 25, 2026
Merged

Preserve anonymous function parameter attributes#2808
DavidObando merged 1 commit into
mainfrom
fix/issue-2807

Conversation

@DavidObando

Copy link
Copy Markdown
Owner

Summary

  • bind parameter annotations on function literals and arrow lambdas
  • preserve parameter attributes when synthesizing erased lambda adapters
  • add reflection coverage for identity and adapter emission paths

Testing

  • MSBUILDDISABLENODEREUSE=1 dotnet test test/Compiler.Tests/Compiler.Tests.csproj --no-restore
  • MSBUILDDISABLENODEREUSE=1 dotnet test tools/cs2gs/Cs2Gs.Tests/Cs2Gs.Tests.csproj --no-restore

Closes #2807

@DavidObando
DavidObando merged commit e6095e7 into main Jul 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anonymous func loses parameter attributes

1 participant