Files
kotlin/compiler/testData/codegen/boxWithStdlib/delegatedProperty/protectedVarWithPrivateSet.kt
Dmitry Petrov 882827bf04 KT-9717, KT-9603:
pass getter/setter-related flags to AccessorForPropertyDescriptor
2015-10-27 12:02:27 +03:00

14 lines
199 B
Kotlin
Vendored

import kotlin.properties.Delegates
open class A<T : Any> {
protected var value: T by Delegates.notNull()
private set
}
class B : A<Int>()
fun box(): String {
B()
return "OK"
}