Skip to content

Icon for array type that literal null represents reflects the element type and can be other than a class #52439

@Rekkonnect

Description

@Rekkonnect

Version Used:
Visual Studio Community 2019 16.9.3

Steps to Reproduce:

  1. Have a (non-class) array variable be assigned the null literal value. For example:
int[] ar = null;
  1. Hover over the null literal.

Expected Behavior:
The tooltip always shows the icon for the array type, which is a class.

Actual Behavior:
The tooltip icon reflects the array's element types. For the cases of struct arrays, it displays the struct icon, and so on.

Screenshots:
image
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions