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

19 lines
272 B
Kotlin
Vendored

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