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
awaited Task<T>
produces expression of type T?
#47114
Comments
Update:
Calling it with: Note: use explicit type code fix introduces the same issue, it replaces |
I responded to the Stack Overflow question, here's my answer again for posterity:
You might also be interested in the discussion at dotnet/csharplang#3591 I feel like I've seen others as well, but I can't find them right now. |
Thanks, I'm closing this. |
Duplicate of #45787 |
Originally reported in StackOverflow here. I'm not the original poster, just moved it here so the compiler team can have a look.
Version Used:
C# 8, Visual Studio 2019 16.7.2
Steps to Reproduce:
Expected Behavior:
theString
should be of typestring
notstring?
.Actual Behavior:
hovering over
theString
shows a tooltip oflocal variable (string?) theString
The text was updated successfully, but these errors were encountered: