Files
kotlin-fork/idea/testData/intentions/implementAsConstructorParameter/noDirectOverridesNeeded.kt
T
2015-12-30 00:56:34 +03:00

17 lines
320 B
Kotlin
Vendored

// IS_APPLICABLE: false
// ERROR: Class 'C' must be declared abstract or implement abstract base class member public abstract val foo: kotlin.Int defined in B
interface A {
val <caret>foo: Int
}
class X : A {
override val foo = 1
}
abstract class B : A {
abstract override val foo: Int
}
class C: B() {
}