mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
11 lines
227 B
Plaintext
11 lines
227 B
Plaintext
fun foo() {
|
|
var a: Int? = null
|
|
fun isOddNumber(n: Int?): Boolean? {
|
|
if (n == null) return null
|
|
if (n < 0) return null
|
|
return n % 2 == 1
|
|
}
|
|
if (isOddNumber(a)?.xor(true) == true) {
|
|
|
|
}
|
|
} |