C#7 inline As variable scope is too wide #19129
Labels
Area-Language Design
Question
Resolution-Answered
The question has been answered
Resolution-By Design
The behavior reported in the issue matches the current design
Versions Used:
2.1.0 (nuget from 24-04-2017),
Release version from
Internal ID: Roslyn-Signed_20170320.4
Internal VS ID: d15rel.26403.00
Steps to Reproduce:
https://github.com/dotnet/roslyn/releases/tag/Visual-Studio-2017-Update-1
Expected Behavior:
Build should have pass.
This construct should be treated like
Actual Behavior:
Microsoft (R) Visual C# Compiler version 2.1.0.56735
Copyright (C) Microsoft Corporation. All rights reserved.
test.cs(15,17): error CS0128: A local variable or function named 'ae' is already defined in thi
s scope
Code is treated like
The text was updated successfully, but these errors were encountered: