Skip to content

VSTHRD002 should not fire in continuations #217

@sharwell

Description

@sharwell

The following code reports VSTHRD002, but it should not:

Task<int> task = default;
task.ContinueWith(t => t.Result); // t is known to be completed at the point of t.Result

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions