Skip to content

Odd behaviour with async method declaration: wrong types suggestion #60341

@DoctorKrolic

Description

@DoctorKrolic

Probably related to #60339

Version Used:
VS 2022 v.17.2 Preview 2.1

Steps to Reproduce:
Start code:

class Test
{
    public async $$
}

Expected Behavior:
Only Task, Task<>, ValueTask and ValueTask<> are suggested

Actual Behavior:
devenv_VObHb5szpa

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions