17 lines
352 B
Kotlin
Vendored
17 lines
352 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// SKIP_TXT
|
|
|
|
class A {
|
|
lateinit var m: Map<String, Int>
|
|
|
|
@ExperimentalStdlibApi
|
|
fun foo(xs: Collection<List<String>>) {
|
|
m = buildMap {
|
|
// flatMap calls might be completed on early phase
|
|
for (x in xs.flatMap { it.toList() }) {
|
|
put(x, x.length)
|
|
}
|
|
}
|
|
}
|
|
}
|