Files
kotlin-fork/idea/testData/inspectionsLocal/scopeFunctions/applyToAlso/capturedIt.kt.after
T

11 lines
286 B
Plaintext
Vendored

// WITH_RUNTIME
// FIX: Convert to 'also'
class Employee(val firstName: String, val manager: Employee?)
fun test(employee: Employee) {
val person = employee.also {
it.manager?.<caret>also { employee1 ->
println("${it.firstName} has a manager")
}
}
}