mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
19 lines
234 B
Kotlin
Vendored
19 lines
234 B
Kotlin
Vendored
// 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"
|
|
}
|