mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
20 lines
260 B
Kotlin
Vendored
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"
|
|
}
|