Fixed KT-4431 Override/implement val: generate getter instead of initializer
#KT-4431 Fixed
This commit is contained in:
@@ -23,17 +23,23 @@ class C : A(), B {
|
||||
super<A>.internalFun()
|
||||
}
|
||||
|
||||
override val internalProperty: Int = 0
|
||||
override val internalProperty: Int
|
||||
get() = 0
|
||||
|
||||
override fun protectedFun() {
|
||||
super<A>.protectedFun()
|
||||
}
|
||||
|
||||
override val protectedProperty: Int = 0
|
||||
override val protectedProperty: Int
|
||||
get() = 0
|
||||
|
||||
override fun publicFun() {
|
||||
super<A>.publicFun()
|
||||
}
|
||||
|
||||
override val publicProperty: Int = 0
|
||||
override val publicProperty: Int
|
||||
get() = 0
|
||||
|
||||
override fun toString(): String {
|
||||
return super<A>.toString()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user