Added diagnostic tests for inference and incorporation
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// !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>>>() }
|
||||
}
|
||||
Reference in New Issue
Block a user