2016-03-13 03:14:19 +00:00
|
|
|
class Foo {
|
|
|
|
|
construct new() {}
|
|
|
|
|
foo() {}
|
|
|
|
|
foo() {} // expect error
|
2016-03-15 14:15:55 +00:00
|
|
|
|
2016-03-13 03:14:19 +00:00
|
|
|
static bar() {}
|
|
|
|
|
static bar() {} // expect error
|
2016-03-15 14:15:55 +00:00
|
|
|
|
|
|
|
|
// No error on instance and static method with same signature.
|
2016-03-13 03:14:19 +00:00
|
|
|
baz() {}
|
|
|
|
|
static baz() {}
|
|
|
|
|
}
|