Files
kotlin-fork/idea/testData/refactoring/changeSignature/JavaMethodOverridesChangeParamBefore.1.kt
T
2015-10-14 20:39:35 +03:00

25 lines
355 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("")
}