Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/privateFieldOverridesNothing.kt
T

20 lines
238 B
Kotlin
Vendored

// FIR_IDENTICAL
// FILE: B.java
public 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
}