Files
kotlin-fork/idea/testData/quickfix/changeSignature/complexHierarchy.kt.after
T
2015-05-13 16:13:13 +02:00

59 lines
718 B
Plaintext
Vendored

// "Add parameter to function 'f'" "true"
interface OA {
fun f(a: Int, i: Int)
}
interface OB {
fun f(a: Int, i: Int)
}
interface O : OA, OB {
override fun f(a: Int, i: Int)
}
interface OO : O {
override fun f(a: Int, i: Int) {
}
}
interface OOO : OO {
override fun f(a: Int, i: Int) {}
}
interface OOOA : OOO {
override fun f(a: Int, i: Int) {
}
}
interface OOOB : OOO {
override fun f(a: Int, i: Int) {
}
}
fun usage(o: OA) {
o.f(1, 12)
}
fun usage(o: OB) {
o.f(1, 12)
}
fun usage(o: O) {
o.f(1, 12)
}
fun usage(o: OO) {
o.f(13, 12)
}
fun usage(o: OOO) {
o.f(3, 12)
}
fun usage(o: OOOA) {
o.f(3, 12)
}
fun usage(o: OOOB) {
o.f(3, 12)
}