mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
27 lines
315 B
Kotlin
Vendored
27 lines
315 B
Kotlin
Vendored
// FILE: C.java
|
|
|
|
interface A {
|
|
String getOk();
|
|
}
|
|
|
|
interface B {
|
|
String getOk();
|
|
}
|
|
|
|
interface C extends A, B {
|
|
}
|
|
|
|
// FILE: JavaClass.java
|
|
|
|
class JavaClass implements C {
|
|
public String getOk() { return "OK"; }
|
|
}
|
|
|
|
// FILE: 1.kt
|
|
|
|
fun box(): String {
|
|
return f(JavaClass())
|
|
}
|
|
|
|
internal fun f(c: C) = c.ok
|