[FIR] Fix tests (ARGUMENT_TYPE_MISMATCH instead of INCOMPATIBLE_CANDIDATE)

This commit is contained in:
Ivan Kochurkin
2021-04-06 01:35:30 +03:00
committed by TeamCityServer
parent 4ffab5fe5a
commit ad9b962536
461 changed files with 1239 additions and 1246 deletions
@@ -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<!>)
}