Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "async" when using Generate Method on an await expression #14467

Open
DustinCampbell opened this issue Oct 12, 2016 · 0 comments
Open

Add "async" when using Generate Method on an await expression #14467

DustinCampbell opened this issue Oct 12, 2016 · 0 comments

Comments

@DustinCampbell
Copy link
Member

using System;
using System.Threading.Tasks;

class C
{
    async Task M1(int id)
    {
        await M2(id);$$
    }
}

Press Ctrl+ at the caret and apply "Generate method 'C.M2'".

Expected Result:

private async Task M2(int id)
{
    throw new NotImplementedException();
}

Actual Result:

private Task M2(int id)
{
    throw new NotImplementedException();
}
@Pilchie Pilchie added the Bug label Oct 17, 2016
@Pilchie Pilchie added this to the 2.0 (RTM) milestone Oct 17, 2016
@Pilchie Pilchie modified the milestones: 3.0, 2.0 (RTM) Jan 19, 2017
@jmarolf jmarolf removed their assignment Mar 16, 2017
@jinujoseph jinujoseph modified the milestones: 16.0, 16.1.P1 Jan 16, 2019
@jinujoseph jinujoseph modified the milestones: 16.1.P1, 16.2 Apr 24, 2019
@jinujoseph jinujoseph modified the milestones: 16.2, Backlog Jun 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants