Files
kotlin-fork/idea/testData/intentions/joinDeclarationAndAssignment/notFirstInitLine.kt
T

20 lines
321 B
Kotlin
Vendored

// IS_APPLICABLE: false
class A
class AFabric {
lateinit var instance: A
fun init(config: Unit) {
instance = A()
}
}
class V(fabric: AFabric) {
val a: A<caret>
init {
val config = getConfig()
fabric.init(config)
a = fabric.instance
}
fun getConfig() = Unit
}