forked from Mirror/wren
Don't use generic function for finding method duplicates and add tests
This commit is contained in:
11
test/language/method/duplicate_methods.wren
Normal file
11
test/language/method/duplicate_methods.wren
Normal file
@ -0,0 +1,11 @@
|
||||
class Foo {
|
||||
construct new() {}
|
||||
foo() {}
|
||||
foo() {} // expect error
|
||||
|
||||
static bar() {}
|
||||
static bar() {} // expect error
|
||||
|
||||
baz() {}
|
||||
static baz() {}
|
||||
}
|
||||
Reference in New Issue
Block a user