Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/protectedVarWithPrivateSet.kt
T
2020-04-03 13:29:55 +03:00

18 lines
242 B
Kotlin
Vendored

// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
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"
}