Skip to content

Commit 366e91d

Browse files
committed
add failing test
1 parent c0bf9b1 commit 366e91d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/lib/rules/classic-decorator-no-classic-methods.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ ruleTester.run('classic-decorator-no-classic-methods', rule, {
4747
foo = otherClass.get('bar');
4848
}
4949
`,
50+
`
51+
class Foo extends Bar {
52+
#get = (k) => {};
53+
foo = () => {
54+
this.#get('abc');
55+
}
56+
}
57+
`,
5058
],
5159

5260
invalid: [

0 commit comments

Comments
 (0)