18 lines
247 B
Kotlin
Vendored
18 lines
247 B
Kotlin
Vendored
class Derived : Base {
|
|
constructor() /* primary */ {
|
|
super/*Base*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
fun setValue(v: Any) {
|
|
when {
|
|
v is String -> { // BLOCK
|
|
<this>(super<Derived>).#value = v /*as String */
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|