Files
kotlin-fork/idea/testData/intentions/convertPrimaryConstructorToSecondary/withMultipleInheritance.kt.after
T
Mikhail Glukhikh 7f50e6e70e KT-9839: intention introduced: convert primary constructor to secondary one
(cherry picked from commit 93aaa48)
2016-09-30 16:39:01 +03:00

25 lines
371 B
Plaintext
Vendored

interface A {
val s: String
}
interface B {
val x: Int
}
abstract class C(open val d: Double)
class D : A, C, B {
open val y: Int
override val d: Double
constructor(y: Int, d: Double) : super(d) {
this.y = y
this.d = d
this.s = "$y -> $d"
this.x = y * y
}
override val s: String
override val x: Int
}