You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#nullable enable
publicclassExample{privatevoidMain(){// The `user` tooltip on this line shows `object?`, but it should be `object`varuser=newobject();}}
On the line var user = new object(), VS shows user as being of type object?, but it should be of type object.
This is especially confusing when the VS setting Display inline type hints is enabled:
This issue is similar to #66854 and #44063, but I think it deserves it's own issue 🙂
The text was updated successfully, but these errors were encountered:
Consider the following code:
On the line
var user = new object()
, VS showsuser
as being of typeobject?
, but it should be of typeobject
.This is especially confusing when the VS setting
Display inline type hints
is enabled:This issue is similar to #66854 and #44063, but I think it deserves it's own issue 🙂
The text was updated successfully, but these errors were encountered: