KT-9839: intention introduced: convert primary constructor to secondary one
(cherry picked from commit 93aaa48)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
d4418d5686
commit
7f50e6e70e
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user