Files
2020-12-16 19:52:30 +03:00

20 lines
327 B
Kotlin
Vendored

// FILE: Base.java
public class Base {
public String getSomething() {
return "";
}
}
// FILE: Derived.kt
class Derived : Base() {
override fun getSomething(): String = "42"
}
fun test() {
val d = Derived()
val res1 = d.something // Should be Ok
val res2 = d.getSomething() // Should be Ok
}