Skip to content

Language service crashes for static member in class with unresolved base members #49058

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

Likely introduced by #46719

var FooA: any;

class DerivedA extends FooA {
    static /*1*/value() {
        return undefined;
    }
}

function FooB() {
}

class DerivedB extends FooB {
    static /*2*/value() {
        return undefined;
    }
}

class DerivedC extends UNRESOLVED_VALUE_DEFINITELY_DOES_NOT_EXIST {
    static /*3*/value() {
        return undefined;
    }
}

Request quick info at each marker.

Cannot read property 'flags' of undefined
    at getSymbolLinks (tsserverlibrary.js:49303:24)
    at getExportsOfModule (tsserverlibrary.js:51426:25)
    at getExportsOfModuleAsArray (tsserverlibrary.js:51365:35)
    at <anonymous> (tsserverlibrary.js:164437:35)
    at firstDefined (tsserverlibrary.js:407:26)
    at findBaseOfDeclaration (tsserverlibrary.js:164434:19)
    at _loop_23 (tsserverlibrary.js:164408:37)
    at getDocumentationComment (tsserverlibrary.js:164423:17)
    at SignatureObject.getDocumentationComment (tsserverlibrary.js:164358:78)
    at addSignatureDisplayParts (tsserverlibrary.js:145570:43)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputDomain: JSDocRelates to JSDoc parsing and type generationDomain: Quick Infoe.g. hover text, tool-tips, and tooltips.Domain: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Fix AvailableA PR has been opened for this issueHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions