Skip to content

Commit

Permalink
test(linter/no-unused-vars): ensure type annotations on property acce…
Browse files Browse the repository at this point in the history
…ssors are considered used (#5183)
  • Loading branch information
DonIsaac committed Aug 25, 2024
1 parent 49cd5db commit a877e5a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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![
Expand Down

0 comments on commit a877e5a

Please sign in to comment.