-
Notifications
You must be signed in to change notification settings - Fork 154
Raise VSTHRD002 on improper sync-blocking of configured awaiters #1355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| class Test { | ||
| void F() { | ||
| var task = Task.Run(() => 1); | ||
| task.ConfigureAwait(false).GetAwaiter().[|GetResult|](); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not familiar with [|..|] syntax? Is it specific to CSVerify to annotate the expected location of the warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's the much easier syntax to mark where the diagnostic is expected than what the prior tests use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the quick turn around on this one!
Closes #1354