mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
test(linter/no-unused-vars): ensure type annotations on property accessors are considered used (#5183)
This commit is contained in:
parent
49cd5db54f
commit
a877e5a612
1 changed files with 7 additions and 0 deletions
|
|
@ -904,6 +904,13 @@ fn test_type_references() {
|
|||
|
||||
export const API_PERMISSIONS = {} as const;
|
||||
",
|
||||
"
|
||||
type Foo = 'foo' | 'bar';
|
||||
export class Bar {
|
||||
accessor x: Foo
|
||||
accessor y!: Foo
|
||||
}
|
||||
",
|
||||
];
|
||||
|
||||
let fail = vec![
|
||||
|
|
|
|||
Loading…
Reference in a new issue