Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/commonSystem/nestedLambdas.fir.kt
T

11 lines
291 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
// !CHECK_TYPE
fun <T, R> Collection<T>.map(transform : (T) -> R) : List<R> = throw Exception()
fun test(list: List<List<Int>>) {
val list1 = list.map { it.map { "$it" } }
list1 checkType { <!UNRESOLVED_REFERENCE!>_<!><List<List<String>>>() }
}