Test for KT-9712 (fixed along with KT-9717)

#KT-9712 Fixed
This commit is contained in:
Dmitry Petrov
2015-10-28 10:32:21 +03:00
parent 190bab099c
commit 21d927b7a4
2 changed files with 28 additions and 0 deletions
@@ -0,0 +1,22 @@
import kotlin.properties.Delegates
object X {
public var O: String
by Delegates.observable("O") { prop, old, new -> }
private set
}
open class A {
public var K: String
by Delegates.observable("") { prop, old, new -> }
protected set
}
class B : A() {
init {
K = "K"
}
}
fun box(): String =
X.O + B().K