[FIR] Fix tests (ARGUMENT_TYPE_MISMATCH instead of INCOMPATIBLE_CANDIDATE)
This commit is contained in:
committed by
TeamCityServer
parent
4ffab5fe5a
commit
ad9b962536
+2
-2
@@ -12,7 +12,7 @@ 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)
|
||||
checkSubtype<String>(<!ARGUMENT_TYPE_MISMATCH!>res<!>)
|
||||
}
|
||||
|
||||
fun <T> Collection<T>.foo() {}
|
||||
@@ -21,5 +21,5 @@ 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)
|
||||
checkSubtype<String>(<!ARGUMENT_TYPE_MISMATCH!>res<!>)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user