59f192ef90
Includes changes to decompiled text Old syntax is used in builtins and project code for now
24 lines
503 B
Kotlin
24 lines
503 B
Kotlin
class Identifier() {
|
|
private var myNullable : Boolean = false
|
|
set(l : Boolean) {
|
|
//do nothing
|
|
}
|
|
|
|
fun getValue() : Boolean {
|
|
return myNullable
|
|
}
|
|
|
|
default object {
|
|
fun init(isNullable : Boolean) : Identifier {
|
|
val id = Identifier()
|
|
id.myNullable = isNullable
|
|
return id
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
val id = Identifier.init(true)
|
|
return if (id.getValue() == false) return "OK" else "fail"
|
|
}
|