12 lines
281 B
Kotlin
Vendored
12 lines
281 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !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>>>() }
|
|
}
|