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

Refactoring "Make method async" should not add suffix "Async" to main method #26312

Closed
josefpihrt opened this issue Apr 21, 2018 · 0 comments · Fixed by #26316
Closed

Refactoring "Make method async" should not add suffix "Async" to main method #26312

josefpihrt opened this issue Apr 21, 2018 · 0 comments · Fixed by #26316
Assignees
Labels
Milestone

Comments

@josefpihrt
Copy link
Contributor

Version Used: 2.7.0

Steps to Reproduce:

public static class Program
{
    public static void Main()
    {
        object x = await GetAsync(); // Make method async
    }

    private static Task<object> GetAsync() => Task.FromResult(default(object));
}

Expected Behavior:

public static class Program
{
    public static async Task Main()
    {
        object x = await GetAsync();
    }
}

Actual Behavior:

public static class Program
{
    public static async Task MainAsync()
    {
        object x = await GetAsync();
    }
}
@jcouv jcouv added Area-IDE 4 - In Review A fix for the issue is submitted for review. labels Apr 21, 2018
@jcouv jcouv self-assigned this Apr 21, 2018
@jcouv jcouv added this to the 15.8 milestone Apr 21, 2018
@gafter gafter removed 4 - In Review A fix for the issue is submitted for review. labels Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants