Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/privateFieldOverridesNothing.kt
T
Denis Zharkov a02b64f0e3 Setup overridability rules for properties built on Java fields
- They overrides each other
- They do not overrides Kotlin propeties and vice versa
2015-10-06 23:56:17 +03:00

19 lines
214 B
Kotlin
Vendored

// FILE: B.java
abstract class B implements A {
private int size = 1;
}
// FILE: main.kt
interface A {
val size: Int
}
class C : B() {
override val size: Int get() = 1
}
fun foo() {
C().size
}