fbb4914bfb
#KT-22931 Fixed
11 lines
286 B
Plaintext
Vendored
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")
|
|
}
|
|
}
|
|
} |