Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/protectedVarWithPrivateSet.kt
T
2018-09-04 20:19:04 +03:00

18 lines
243 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// 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"
}