AA FIR: build argument mapping for SAM conversion node

^KT-64910 fixed
This commit is contained in:
Jinseong Jeon
2024-01-11 22:42:08 -08:00
committed by teamcity
parent d6c9a492ad
commit e91e5db0ce
13 changed files with 390 additions and 1 deletions
@@ -0,0 +1,30 @@
// 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 stash(MyInterface actor, List<MyInterface> actors) {
actors.add(actor);
}
}
// FILE: main.kt
package test.pkg
fun test(handler: MyHandler, list: List<MyInterface>) {
val lambda = { println("hello") }
<expr>handler.stash(lambda, list)</expr>
}