[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
package i
|
||||
|
||||
//+JDK
|
||||
import java.util.*
|
||||
|
||||
fun <T, R> Collection<T>.map1(f : (T) -> R) : List<R> {}
|
||||
fun <T, R> java.lang.Iterable<T>.map1(f : (T) -> R) : List<R> {}
|
||||
|
||||
fun test(list: List<Int>) {
|
||||
val res = list.map1 { it }
|
||||
//check res is not of error type
|
||||
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><String>(res)
|
||||
}
|
||||
|
||||
fun <T> Collection<T>.foo() {}
|
||||
fun <T> java.lang.Iterable<T>.foo() {}
|
||||
|
||||
fun test1(list: List<Int>) {
|
||||
val res = list.foo()
|
||||
//check res is not of error type
|
||||
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><String>(res)
|
||||
}
|
||||
Reference in New Issue
Block a user