refactor: extract duplicate method detection into declareMethod helper and rename instanceMethods buffer to methods

This commit is contained in:
Bob Nystrom
2016-03-15 14:15:55 +00:00
parent 1d546cf840
commit 5d42ce9ad6
2 changed files with 38 additions and 28 deletions
+3 -2
View File
@@ -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() {}
}