FIR: Update test data (SAM conversions)

See KT-46372
This commit is contained in:
Denis.Zharkov
2021-04-28 12:22:48 +03:00
committed by teamcityserver
parent 601500fd99
commit 9265377d51
2 changed files with 18 additions and 2 deletions
@@ -0,0 +1,18 @@
// FILE: C.java
public interface C { void on(String s); }
// FILE: A.java
public class A { void add(C c) {} }
// FILE: test.kt
class B : A() {
fun test(x: Any?) {
add(foo { <!TYPE_MISMATCH!>{ _ : String -> Unit }<!> })
add(x?.let { <!TYPE_MISMATCH!>{ _ : String -> Unit }<!> })
}
}
fun <T> foo(f: () -> T): T = f()
@@ -1,5 +1,3 @@
// FIR_IDENTICAL
// FILE: C.java
public interface C { void on(String s); }