[FIR] Fix tests (ARGUMENT_TYPE_MISMATCH instead of INCOMPATIBLE_CANDIDATE)
This commit is contained in:
committed by
TeamCityServer
parent
4ffab5fe5a
commit
ad9b962536
+1
-1
@@ -22,5 +22,5 @@ interface TypePredicate : (KotlinType) -> Boolean {
|
||||
|
||||
fun <T : Any?> TypePredicate.expectedTypeFor(keys: Iterable<T>): Map<T, TypePredicate> =
|
||||
keys.fold(SmartFMap.emptyMap<T, TypePredicate>()) { map, key ->
|
||||
map.<!INAPPLICABLE_CANDIDATE!>plus<!>(key, this)
|
||||
map.plus(<!ARGUMENT_TYPE_MISMATCH!>key<!>, this)
|
||||
}
|
||||
|
||||
+2
-2
@@ -21,12 +21,12 @@ fun test(
|
||||
invOut.onlyOut(42)
|
||||
invOut.onlyOut(1L)
|
||||
|
||||
invOut.<!INAPPLICABLE_CANDIDATE!>onlyOutUB<!>("str")
|
||||
invOut.onlyOutUB(<!ARGUMENT_TYPE_MISMATCH!>"str"<!>)
|
||||
invStar.<!INAPPLICABLE_CANDIDATE!>onlyOutUB<!>(0)
|
||||
invOut.onlyOutUB(42)
|
||||
invOut.onlyOutUB(1L)
|
||||
|
||||
invIn.<!INAPPLICABLE_CANDIDATE!>onlyIn<!>("str")
|
||||
invIn.onlyIn(<!ARGUMENT_TYPE_MISMATCH!>"str"<!>)
|
||||
invIn.onlyIn(42)
|
||||
invIn.onlyIn(1L)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user