Overridable val should not be treated as constant
#KT-9443 fixed
This commit is contained in:
@@ -13,6 +13,12 @@ class A {
|
||||
// val prop4: 2
|
||||
val prop4 = A.a + 1
|
||||
|
||||
// val prop7: 0
|
||||
open val prop7 = 0
|
||||
|
||||
// val prop8: null
|
||||
val prop8 = prop7
|
||||
|
||||
companion object {
|
||||
val a = 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user