22 lines
265 B
Kotlin
Vendored
22 lines
265 B
Kotlin
Vendored
// FILE: Base.kt
|
|
|
|
interface Base {
|
|
val x: Int
|
|
}
|
|
|
|
// FILE: Inheritor.java
|
|
|
|
public class Inheritor implements Base {
|
|
public int getX() {
|
|
return 42;
|
|
}
|
|
}
|
|
|
|
// FILE: Test.kt
|
|
|
|
class Tester : Inheritor() {
|
|
fun test(): Int {
|
|
return x
|
|
}
|
|
}
|