mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
14 lines
199 B
Kotlin
Vendored
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"
|
|
} |