AA FIR: build argument mapping for SAM conversion node
^KT-64910 fixed
This commit is contained in:
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
// FILE: MyInterface.java
|
||||
|
||||
package test.pkg;
|
||||
|
||||
interface MyInterface {
|
||||
void act();
|
||||
}
|
||||
|
||||
// FILE: MyHandler.java
|
||||
|
||||
package test.pkg;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class MyHandler {
|
||||
public void act(MyInterface actor) {
|
||||
if (actor != null) {
|
||||
actor.act();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
package test.pkg
|
||||
|
||||
fun callback() {}
|
||||
|
||||
fun test(handler: MyHandler, list: List<MyInterface>) {
|
||||
<expr>handler.act(::callback)</expr>
|
||||
}
|
||||
Reference in New Issue
Block a user