17869abfaf
(which was possible in leaking this inspection) So #KT-14443 Fixed
15 lines
279 B
Kotlin
Vendored
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()
|
|
}
|
|
}
|