Skip to content

Allow genearted local function parameter name to shadow variables#47844

Merged
4 commits merged intodotnet:masterfrom
genlu:GenerateName
Sep 19, 2020
Merged

Allow genearted local function parameter name to shadow variables#47844
4 commits merged intodotnet:masterfrom
genlu:GenerateName

Conversation

@genlu
Copy link
Member

@genlu genlu commented Sep 18, 2020

Fix #42049

@dotnet/roslyn-ide
FYI @jcouv

@genlu genlu added the Area-IDE label Sep 18, 2020
@genlu genlu requested a review from a team as a code owner September 18, 2020 18:18
Copy link
Member

@jasonmalinowski jasonmalinowski left a comment

Choose a reason for hiding this comment

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

Looks good other than the spelling error @CyrusNajmabadi called out.

await VerifyItemExistsAsync(markup, "db", glyph: (int)Glyph.Parameter);
await VerifyItemExistsAsync(markup, "context1", glyph: (int)Glyph.Parameter);

if (languageVersion.MapSpecifiedToEffectiveVersion() >= LanguageVersion.CSharp8)
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for testing with language names in both directions.

genlu and others added 2 commits September 18, 2020 13:41
Co-authored-by: CyrusNajmabadi <cyrus.najmabadi@gmail.com>
@ghost
Copy link

ghost commented Sep 18, 2020

Hello @genlu!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Auto-approval

@jcouv
Copy link
Member

jcouv commented Sep 18, 2020

Thanks @genlu! :-)

@ghost ghost merged commit 4f600e6 into dotnet:master Sep 19, 2020
@ghost ghost added this to the Next milestone Sep 19, 2020
@dibarbet dibarbet modified the milestones: Next, 16.8.P4 Sep 21, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parameter name completion inconvenient on local function with shadowing

5 participants