refactor: extract duplicate method detection into declareMethod helper and rename instanceMethods buffer to methods
This commit is contained in:
@@ -2,10 +2,11 @@ class Foo {
|
||||
construct new() {}
|
||||
foo() {}
|
||||
foo() {} // expect error
|
||||
|
||||
|
||||
static bar() {}
|
||||
static bar() {} // expect error
|
||||
|
||||
|
||||
// No error on instance and static method with same signature.
|
||||
baz() {}
|
||||
static baz() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user