Skip to content

Typescript 4.3.5. Debug FailureΒ #45987

@sla100

Description

@sla100

Bug Report

πŸ”Ž Search Terms

Debug Failure

πŸ•— Version & Regression Information

  • This is a crash
  • This changed between versions 4.3.5 and 4.4.2

⏯ Playground Link

Playground link with relevant code 4.4.2

Playground link with relevant code 4.3.5

πŸ’» Code

export type 404 = {
    foo: string;
}

πŸ™ Actual behavior

Error: Debug Failure.
    at .\node_modules\typescript\lib\tsc.js:15216:89
    at String.replace (<anonymous>)
    at formatStringFromArgs (.\node_modules\typescript\lib\tsc.js:15216:21)
    at Object.createDetachedDiagnostic (.\node_modules\typescript\lib\tsc.js:15231:20)
    at parseErrorAtPosition (.\node_modules\typescript\lib\tsc.js:24749:42)
    at parseErrorAt (.\node_modules\typescript\lib\tsc.js:24754:13)
    at parseErrorAtCurrentToken (.\node_modules\typescript\lib\tsc.js:24744:13)
    at parseErrorForInvalidName (.\node_modules\typescript\lib\tsc.js:24922:17)
    at parseErrorForMissingSemicolonAfter (.\node_modules\typescript\lib\tsc.js:24904:21)
    at parseExpressionOrLabeledStatement (.\node_modules\typescript\lib\tsc.js:27986:21)

πŸ™‚ Expected behavior

Compilation error

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions