dotnet / dotnet/csharpstandard
[C#8.0] Local functions can declare variables with the same name as those in the outer scope
Open
- 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
Assessment
This issue has not been assessed yet.