-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Redundant leading apostrophe in the ts1344 diagnosticΒ #63340
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScript
Description
π Search Terms
ts1344
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about Common "Bugs" That Aren't Bugs
β― Playground Link
π» Code
"use strict"
label: function fn() { }π Actual behavior
It prints the ts1344 diagnostic
'A label is not allowed here.
π Expected behavior
It should print
A label is not allowed here.
The leading ' is redundant, likely due to an unclosed single quote string later wrapped in doublequotes.
Additional information about the issue
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScript