02e327277e
In this commit reporting on member properties in init section of class is not supported (see KT-55528) ^KT-55493 Fixed
15 lines
264 B
Kotlin
Vendored
15 lines
264 B
Kotlin
Vendored
// KT-443 Write allowed to super.val
|
|
|
|
open class M() {
|
|
open val b: Int = 5
|
|
}
|
|
|
|
class N() : M() {
|
|
val a : Int
|
|
get() {
|
|
super.<!VAL_REASSIGNMENT!>b<!> = super.b + 1
|
|
return super.b + 1
|
|
}
|
|
override val b: Int = a + 1
|
|
}
|