Files
kotlin-fork/idea/testData/intentions/moveToCompanion/overriddenProperty.kt
T
Alexey Sedunov d13ac6b5a4 Intentions: Move class member to companion object
#KT-9697 In Progress
2016-02-04 12:26:18 +03:00

8 lines
197 B
Kotlin
Vendored

// SHOULD_FAIL_WITH: Property <b><code>foo</code></b> is overridden by declaration(s) in a subclass
open class A {
open val <caret>foo: Int = 1
}
class B: A() {
override val foo: Int = 2
}