KT-424: Check declarations for overload-compatibility
===
fun a() {}
fun a() {}
===
must be an error.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// http://youtrack.jetbrains.net/issue/KT-424
|
||||
|
||||
class A {
|
||||
// XXX: error should be reported on the whole method signature
|
||||
// not only on method name
|
||||
fun <!CONFLICTING_OVERLOADS!>a<!>() {
|
||||
}
|
||||
|
||||
fun <!CONFLICTING_OVERLOADS!>a<!>() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user