Skip to content

Code fix for VSTHRD103 doesn't handle nested awaits properly #329

Closed
@sharwell

Description

Repro steps

await Task.Run(() => Console.Error).Result.WriteLineAsync();

Expected behavior

await (await Task.Run(() => Console.Error)).WriteLineAsync();

Actual behavior

await await Task.Run(() => Console.Error);
  • Version used: 15.8.132
  • Application (if applicable): VS 15.8 Preview 5

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions