Automatic renaming overloads in class or object.

#KT-4642 fixed
This commit is contained in:
Evgeny Gerashchenko
2015-04-16 20:50:29 +03:00
parent d383e03a81
commit 09cff44207
15 changed files with 203 additions and 12 deletions
@@ -0,0 +1,7 @@
class JavaSuper {
void foo(int a) {
}
void foo() {
}
}
@@ -0,0 +1,14 @@
class Sub : JavaSuper() {
override fun foo(a: Int) {
}
override fun foo() {
}
}
fun main(args: Array<String>) {
JavaSuper().foo()
JavaSuper().foo(1)
Sub().foo()
Sub().foo(1)
}