11a3482970
#KT-38632 Fixed
14 lines
477 B
Plaintext
Vendored
14 lines
477 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// ERROR: Unresolved reference: unresolvedFun
|
|
// INTENTION_TEXT: "Replace with 'map{}.map{}.firstOrNull{}'"
|
|
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.map{}.firstOrNull{}'"
|
|
fun foo(list: List<String>, o: Any) {
|
|
if (o is CharSequence) {
|
|
unresolvedFun()
|
|
|
|
val result: Any? = list
|
|
.map { it.length + (o as String).capitalize().hashCode() }
|
|
.map { it * o.length }
|
|
.firstOrNull { it > 1000 }
|
|
}
|
|
} |