Skip to content

Invalid property access in quick info relating to type arguments #4616

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
type MixinCtor<A> = new () => A & { constructor: MixinCtor</**/A> };

Hover over the A at /**/.

Expected: A in MixinCtor<A>
Actual: The language service tries to get length off of undefined, crashes.

Description:

getQuickInfoAtPosition('C:\Users\drosen\AppData\Local\Temp\~vsBEB5.ts', 61)

Message:

StackTrace:

TypeError: Unable to get property 'length' of undefined or null reference
   at getSignatureFromDeclaration (:16096:33)
   at getSymbolDisplayPartsDocumentationAndSymbolKind (:44944:25)
   at getQuickInfoAtPosition (:45136:13)
   at Anonymous function (:48843:17)
   at simpleForwardCall (:48683:9)
   at forwardJSONCall (:48699:13)
   at forwardJSONCall (:48745:13)
   at getQuickInfoAtPosition (:48842:13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions