e91e5db0ce
^KT-64910 fixed
31 lines
480 B
Kotlin
Vendored
31 lines
480 B
Kotlin
Vendored
// 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>
|
|
}
|