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

13 lines
161 B
Kotlin
Vendored

class InitAndParams<caret>(x: Int, z: Int) {
val y = x
val w: Int
init {
w = foo(y)
}
fun foo(arg: Int) = arg
val v = w + z
}