Untitled

Run Settings
LanguageKotlin
Language Version
Run Command
fun main(args : Array<String>){ val b = MyClass(true) println(b.consumerStatus) b.myBool = null println(b.consumerStatus) b.myBool = false println(b.consumerStatus) } class MyClass(var myBool : Boolean?) { val consumerStatus get() = when (myBool) { null -> "null" true -> "true" else -> "not null nor true" } }
Editor Settings
Theme
Key bindings
Full width
Lines