π 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
https://www.typescriptlang.org/play/?lib=lib.es5.d.ts&ts=lib.es5.d.ts#code/EQVwzgpgBGAuBOBLAxrYAoANgQwEYUwC4oAzEAO1UQHtzTyAKASigG8oBfIA
π» 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
π Search Terms
ts1344
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?lib=lib.es5.d.ts&ts=lib.es5.d.ts#code/EQVwzgpgBGAuBOBLAxrYAoANgQwEYUwC4oAzEAO1UQHtzTyAKASigG8oBfIA
π» Code
π Actual behavior
It prints the ts1344 diagnostic
π Expected behavior
It should print
The leading
'is redundant, likely due to an unclosed single quote string later wrapped in doublequotes.Additional information about the issue
No response