Skip to content

Unexpected quick info type display when dynamic is involved #81020

@DoctorKrolic

Description

@DoctorKrolic

Version Used:
Latest VS 2026 [11201.2]

Steps to Reproduce:

void M(dynamic d)
{
    DateTime? dt = default;
    var c = dt ??= d;
}

Hover over ??= and var

Expected Behavior:
In both cases I see DateTime? as a type

Actual Behavior:
Image

Image

Note, that for whatever reason in one case the constraint is struct while in other it is struct?, although both types should be just DateTime?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEuntriagedIssues and PRs which have not yet been triaged by a lead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions