Files
kotlin-fork/idea/testData/inspectionsLocal/leakingThis/noOpenForInterface.kt
T
Mikhail Glukhikh 17869abfaf Don't suggest making interface member final
(which was possible in leaking this inspection)
So #KT-14443 Fixed
2017-05-19 20:36:31 +03:00

15 lines
279 B
Kotlin
Vendored

// PROBLEM: Calling non-final function foo in constructor
interface My {
fun foo() {}
}
open class Your : My {
init {
// exactly one fix action should be here (make 'Your' final)
// making 'foo' final will provoke an error
<caret>foo()
}
}