Files
kotlin-fork/idea/testData/intentions/convertPrimaryConstructorToSecondary/withMultipleInheritance.kt
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

15 lines
238 B
Kotlin
Vendored

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