KT-424: Check declarations for overload-compatibility

===
fun a() {}
fun a() {}
===

must be an error.
This commit is contained in:
Stepan Koltsov
2011-11-10 20:00:15 +04:00
parent 1e3f2889a4
commit 5218246d80
8 changed files with 336 additions and 0 deletions
@@ -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<!>() {
}
}