-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using @ts-expect-error in a @ts-nocheck file #39427
Comments
What direction does this bug point @RyanCavanaugh? I would think that the code is behaving as expected: the
Per the comments in stryker-mutator/stryker-js#2403 (comment) I think the right resolution would be for fancy code mutation services to strip out comments. cc @nicojs, since it looks like you already implemented that in stryker-mutator/stryker-js#2365, right? edit: my comment double-posted; I deleted the second one... |
I think |
This actually doesn't give an error anymore in 4.1.5 and up: original example; example with code between the two comments. 🤷 |
Must have been fixed elsewhere then. |
TypeScript Version: 3.9 - 4.0.0-beta, v4.0.0-dev.20200705
Search Terms: "ts-nocheck ts-expect-error" "ts-expect-error"
Code
Expected behavior: No compile error
Actual behavior: Error: Unused '@ts-expect-error' directive.(2578)
Playground Link: https://www.typescriptlang.org/play?ts=4.0.0-beta#code/PTAEAEBcGcFoDsD2BjAFgU2QawFAgjLOgB4AOmkRATlYlTgOQCGDosoDARg0A
Related Issues:
The text was updated successfully, but these errors were encountered: