Files
kotlin-fork/idea/testData/quickfix/override/overridingOpenMethodInFinalClass.kt
T
Mikhail Glukhikh d08b18f5f8 Introduce "use expression body" inspection #KT-16063 Fixed
Converted from the relevant intention
Reported cases: one-liners, whens
Also, more exact caret detection in local inspection tests
2017-07-07 18:15:06 +03:00

9 lines
178 B
Kotlin
Vendored

// "Make A.foo open" "false"
// ERROR: This type is final, so it cannot be inherited from
class A() {
open fun foo() {}
}
class B : A() {
override<caret> fun foo() { }
}