Skip to content

No reference when awaiting custom GetAwaiter method #25714

@HaloFour

Description

@HaloFour

Version Used: v15.6.4

Steps to Reproduce:

  1. Create a class with a custom GetAwaiter that returns an awaitable.
  2. Instantiate that class and await on it from a separate async method.

Expected Behavior:

That the GetAwaiter method shows references from being used in an await expression.

Actual Behavior:

image

Metadata

Metadata

Assignees

Labels

Area-IDEBugResolution-FixedThe bug has been fixed and/or the requested behavior has been implemented

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions