Skip to content

Crash on getOccurrencesAtPosition for const enums #1662

@JsonFreeman

Description

@JsonFreeman
const enum E { }

Try to get occurrences on the const keyword.

Error: Debug Failure. False expression:
at assert (:1143:17)
at fail (:1148:13)
at getFlagFromModifier (:25796:29)
at getModifierOccurrences (:25751:17)
at getOccurrencesAtPosition (:25484:25)
at Anonymous function (:27826:17)
at simpleForwardCall (:27643:9)
at forwardJSONCall (:27657:13)
at forwardJSONCall (:27688:13)
at getOccurrencesAtPosition (:27825:13)

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions