FIR: Update test data (SAM conversions)
See KT-46372
This commit is contained in:
committed by
teamcityserver
parent
601500fd99
commit
9265377d51
Vendored
+18
@@ -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()
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
// FILE: C.java
|
||||
|
||||
public interface C { void on(String s); }
|
||||
|
||||
Reference in New Issue
Block a user