Same code got error in js file but no error in ts file #31312
Labels
Bug
A bug in TypeScript
checkJs
Relates to checking JavaScript using TypeScript
Fix Available
A PR has been opened for this issue
Milestone
Steps to Reproduce:
test.js
In js file, the second line causes an error showing on first line.
But if this two lines are in ts file (change file suffix to ts), there is no error.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: