Skip to content

Quick info on 'new' keyword should be the same as that of resolved expression #31180

@DanielRosenwasser

Description

@DanielRosenwasser
class C {
    /**
     * NOTE: this constructor is private! Please use the factory function
     */
    private constructor() { }
    static makeC() { new C(); }
}

new C();

Expected: Quick info on C and new in new C() should be the same.
Actual: no quick info on new

Why it matters

It'd be nice if hovering over the error at any point could also give you better quick info.

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: LS: Quick Infoe.g. hover text, tool-tips, and tooltips.Experience EnhancementNoncontroversial enhancementsFixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions