Skip to content

Debug failure: Token end is child end #23942

@ghost

Description

TypeScript Version: master

Code
Run as a fourslash test:

/// <reference path='fourslash.ts' />

// @allowJs: true
// @target: esnext

// @Filename: /a.js
//// / / ``}(a){`

verify.codeFix({
    description: "Convert to ES6 module",
    index: 0,
    newFileContent: "",
});

Expected behavior:

No assertion failures.

Actual behavior:

Error: Debug Failure. False expression: Token end is child end

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions