9a65dcb664
^KT-58587 Fixed Review: https://jetbrains.team/p/kt/reviews/10136 This commit is important in scope of KT-57553. It makes the migration more smooth. Other related tests: - testUninitializedOrReassignedVariables - testAugmentedAssignmentInInitializer
13 lines
243 B
Kotlin
Vendored
13 lines
243 B
Kotlin
Vendored
// !LANGUAGE:-TakeIntoAccountEffectivelyFinalInMustBeInitializedCheck
|
|
open class Base {
|
|
open var x: String = ""
|
|
}
|
|
|
|
class Foo : Base() {
|
|
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>override var x: String<!>
|
|
|
|
init {
|
|
x = ""
|
|
}
|
|
}
|