Files
oxc-project__oxc/tasks/coverage/misc/fail/oxc-11713-9.ts
Ulrich Stark 903a150bf8 feat(parser): report more invalid modifier locations (#13368)
### Changes

- Added all 22 examples of #11713 to `tasks/coverage/misc/fail`
- Added `Default` and `Export` to modifiers
- Added three new TS diagnostics: 1029, 1031, and 1070
- Split off `FunctionKind::Constructor` from `FunctionKind::ClassMethod`
to differentiate when verifying modifiers of formal parameter
- Added multiple checks to verify modifiers

### Results
- "Negative Passed" percentage of `parser_babel.snap` and
`parser_typescript.snap` increased
- Better diagnostic messages in both snapshots
- All new failing examples of original issue do really fail
- Closes #11713

---------

Co-authored-by: Boshen <boshenc@gmail.com>
2025-08-29 11:33:21 +08:00

4 lines
35 B
TypeScript

interface Foo {
async method();
}