Files
2023-11-21 15:28:12 +00:00

19 lines
302 B
Kotlin

fun fn(x:Any?, y: Any?) {
if (x == null && y == null) {
throw Exception()
}
if (x != null) {
println("x not null")
} else if (y != null) {
println("y not null")
}
}
fun fn0(o: Any?) {
if (o != null) {
o?.toString()
o.toString()
}
}