Skip to content

Add missing C# 8.0 feature: lambda parameter shadowing#52992

Open
rrqc4rt4q4-a11 wants to merge 1 commit intodotnet:mainfrom
rrqc4rt4q4-a11:patch-2
Open

Add missing C# 8.0 feature: lambda parameter shadowing#52992
rrqc4rt4q4-a11 wants to merge 1 commit intodotnet:mainfrom
rrqc4rt4q4-a11:patch-2

Conversation

@rrqc4rt4q4-a11
Copy link
Copy Markdown

@rrqc4rt4q4-a11 rrqc4rt4q4-a11 commented Apr 13, 2026

Summary

Add missing C# 8.0 feature to the version history.

Lambda and local function parameters can shadow names
from the enclosing scope was not listed in the C# 8.0
features list.

Fixes #52972


Internal previews

📄 File 🔗 Preview link
docs/csharp/whats-new/csharp-version-history.md The history of C#

@rrqc4rt4q4-a11 rrqc4rt4q4-a11 requested review from a team and BillWagner as code owners April 13, 2026 06:25
@dotnetrepoman dotnetrepoman bot added this to the April 2026 milestone Apr 13, 2026
@dotnet-policy-service dotnet-policy-service bot added dotnet-csharp/svc whats-new/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Apr 13, 2026
- Positional patterns
- [Using declarations](../language-reference/statements/using.md)
- [Static local functions](../programming-guide/classes-and-structs/local-functions.md)
_ [Lambda and local function parameters can shadow names from the enclosing scope](../language-reference/declarations/scope.md)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure where you intended this to link to, but this file doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc whats-new/subsvc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C# 8 enhancement: lambda and local function parameters can shadow locals and parameters

2 participants