dotnet / dotnet/csharpstandard

[C#8.0] Local functions can declare variables with the same name as those in the outer scope

Open
#590 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
815
Forks
99
Avg merge
1d 14h
Merged PRs (30d)
16

Description

https://github.com/dotnet/csharpstandard/pull/104/files#r885838412

In C# 7.x, local functions could not declare local variables or parameters with the same name as variables declared in the outer scope. This restriction is removed in C# 8.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.