Files
kotlin-fork/idea/testData/refactoring/changeSignature/JavaMethodOverridesReplaceParamBefore.1.kt
T
2015-07-09 17:56:44 +03:00

25 lines
359 B
Kotlin
Vendored

open class X: A() {
fun foo(s: String): Int {
return super.foo(s) + 1
}
}
open class Y: B() {
fun foo(s: String): Int {
return s.length() * 2
}
}
open class Z: X() {
fun foo(s: String): Int {
return s.length()
}
}
fun test() {
A().foo("")
B().foo("")
X().foo("")
Y().foo("")
Z().foo("")
}