Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/protectedVarWithPrivateSet.kt
T
2018-06-28 12:26:41 +02:00

19 lines
268 B
Kotlin
Vendored

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