Skip to content

Cover expression-bodied async methods with generic Task-like return values in implicit object creation analyzer#77671

Open
John-Leitch wants to merge 3 commits intodotnet:mainfrom
John-Leitch:main
Open

Cover expression-bodied async methods with generic Task-like return values in implicit object creation analyzer#77671
John-Leitch wants to merge 3 commits intodotnet:mainfrom
John-Leitch:main

Conversation

@John-Leitch
Copy link
Copy Markdown
Contributor

This PR covers the following case:

using System.Threading.Tasks;

class C
{
    async Task<C> Func() => new [|C|]();
}

Captured in issue #77670.

@John-Leitch John-Leitch requested a review from a team as a code owner March 19, 2025 04:21
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 19, 2025
@dotnet-policy-service dotnet-policy-service Bot added Community The pull request was submitted by a contributor who is not a Microsoft employee. VSCode labels Mar 19, 2025
@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Thanks for the PR. Some small things to cleanup, then we can take this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants