18 lines
212 B
Kotlin
Vendored
18 lines
212 B
Kotlin
Vendored
// FILE: Condition.java
|
|
|
|
public interface Condition {
|
|
boolean value(boolean t);
|
|
}
|
|
|
|
// FILE: Foo.java
|
|
|
|
public class Foo {
|
|
public Foo(Condition filter) {}
|
|
}
|
|
|
|
// FILE: main.kt
|
|
|
|
fun test() {
|
|
Foo { it }
|
|
}
|