[FIR] Fix tests (ARGUMENT_TYPE_MISMATCH instead of INCOMPATIBLE_CANDIDATE)
This commit is contained in:
committed by
TeamCityServer
parent
4ffab5fe5a
commit
ad9b962536
+1
-1
@@ -14,7 +14,7 @@ FILE: main.kt
|
||||
^ R|<local>/x|.R|kotlin/Number.toInt|().R|kotlin/Any.toString|()
|
||||
}
|
||||
))
|
||||
<Inapplicable(INAPPLICABLE): /foo2>#(R|/MyFunction|<R|kotlin/Number|, R|ft<kotlin/String, kotlin/String?>|>(<L> = MyFunction@fun <anonymous>(x: R|kotlin/Int|): R|ft<kotlin/String, kotlin/String?>| <inline=NoInline> {
|
||||
<Inapplicable(INAPPLICABLE): /foo2>#(R|/MyFunction|<R|ft<kotlin/Int, kotlin/Int?>|, R|ft<kotlin/String, kotlin/String?>|>(<L> = MyFunction@fun <anonymous>(x: R|kotlin/Int|): R|ft<kotlin/String, kotlin/String?>| <inline=NoInline> {
|
||||
^ R|<local>/x|.R|kotlin/Any.toString|()
|
||||
}
|
||||
))
|
||||
|
||||
Vendored
+2
-2
@@ -18,9 +18,9 @@ fun main() {
|
||||
x.toInt().toString()
|
||||
})
|
||||
|
||||
<!INAPPLICABLE_CANDIDATE!>foo2<!>(MyFunction { x: Int ->
|
||||
foo2(<!ARGUMENT_TYPE_MISMATCH!>MyFunction { x: Int ->
|
||||
x.toString()
|
||||
})
|
||||
}<!>)
|
||||
|
||||
foo3(
|
||||
MyFunction { x ->
|
||||
|
||||
+4
-4
@@ -10,13 +10,13 @@ fun foo(m: MyRunnable) {}
|
||||
fun MyRunnable(x: (Int) -> Boolean) = 1
|
||||
|
||||
fun main() {
|
||||
<!INAPPLICABLE_CANDIDATE!>foo<!>(MyRunnable { x ->
|
||||
foo(<!ARGUMENT_TYPE_MISMATCH!>MyRunnable { x ->
|
||||
x > 1
|
||||
})
|
||||
}<!>)
|
||||
|
||||
<!INAPPLICABLE_CANDIDATE!>foo<!>(MyRunnable({ it > 1 }))
|
||||
foo(<!ARGUMENT_TYPE_MISMATCH!>MyRunnable({ it > 1 })<!>)
|
||||
|
||||
val x = { x: Int -> x > 1 }
|
||||
|
||||
<!INAPPLICABLE_CANDIDATE!>foo<!>(MyRunnable(x))
|
||||
foo(<!ARGUMENT_TYPE_MISMATCH!>MyRunnable(x)<!>)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user