Skip to content

Semantic operations on property in self-extending interface crashes LS #4581

Description

@DanielRosenwasser
interface C extends C {
    /**/prop: number;
}

Try renaming and Visual Studio completely crashes.

Try getting highlights/references and you'll get a language service crash:

Description:

getDocumentHighlights('C:\Users\drosen\AppData\Local\Temp\~vs4D49.ts', 36)

StackTrace:

Error: Out of stack space
   at getTypeOfNode (:25551:13)
   at getPropertySymbolFromTypeReference (:45793:25)
   at forEach (:860:17)
   at Anonymous function (:45786:29)
   at forEach (:860:17)
   at getPropertySymbolsFromBaseTypes (:45780:21)
   at getPropertySymbolFromTypeReference (:45800:29)
   at forEach (:860:17)
   at Anonymous function (:45786:29)
   at forEach (:860:17)
   at getPropertySymbolsFromBaseTypes (:45780:21)
   at getPropertySymbolFromTypeReference (:45800:29)
   at forEach (:860:17)
   at Anonymous function (:45786:29)
   at forEach (:860:17)
   at getPropertySymbolsFromBaseTypes (:45780:21)
   at getPropertySymbolFromTypeReference (:45800:29)
   at forEach (:860:17)
   at Anonymous function (:45786:29)
   at forEach (:860:17)
   at getPropertySymbolsFromBaseTypes (:45780:21)
   at getPropertySymbolFromTypeReference (:45800:29)
   at forEac......

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions