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

15 lines
201 B
Plaintext
Vendored

class InitAndParams {
constructor(x: Int, z: Int) {
this.y = x
w = foo(y)
this.v = w + z
}
val y: Int
val w: Int
fun foo(arg: Int) = arg
val v: Int
}