Files
kotlin/compiler/testData/codegen/boxAgainstJava/sam/kt4753.kt
2018-08-02 13:19:27 +02:00

20 lines
260 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: Base.java
interface Base<T> {
void call(T t);
}
// FILE: Derived.java
interface Derived extends Base<String> {
}
// FILE: 1.kt
fun box(): String {
Base<String>{}.call("")
Derived{}.call("")
return "OK"
}