[FIR] Fix tests (ARGUMENT_TYPE_MISMATCH instead of INCOMPATIBLE_CANDIDATE)
This commit is contained in:
committed by
TeamCityServer
parent
4ffab5fe5a
commit
ad9b962536
compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/flowInlining/typeMismatch.fir.kt
Vendored
+1
-1
@@ -14,6 +14,6 @@ fun <T> myRun(block: () -> T): T {
|
||||
fun foo(x: Int): Int = x + 1
|
||||
|
||||
fun typeMismatchInLambda(y: String): Int {
|
||||
val x = myRun { <!INAPPLICABLE_CANDIDATE!>foo<!>(y) }
|
||||
val x = myRun { foo(<!ARGUMENT_TYPE_MISMATCH!>y<!>) }
|
||||
return x
|
||||
}
|
||||
Reference in New Issue
Block a user