Skip to content

RCS1250 Does not offer 'Simplify Object Creation' for async Task<>/ValueTask<> #1763

Description

@John-Leitch

RCS1250 is not offered in the following case:

namespace Foo;

internal class Program
{
    private static async Task<string> TestImplicitAsync()
    {
        return new [|string|](' ', 10);
    }

    private static void Main(string[] args)
    {
        Console.WriteLine("Hello, World!");
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions