Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/commonSystem/nestedLambdas.kt
T
2015-07-10 15:05:07 +03:00

11 lines
264 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 { _<List<List<String>>>() }
}