mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
27 lines
377 B
Kotlin
Vendored
27 lines
377 B
Kotlin
Vendored
fun putNumberCompareAsUnit() {
|
|
if (1 == 1) {
|
|
}
|
|
else if (1 == 1) {
|
|
}
|
|
}
|
|
|
|
fun putNumberCompareAsVoid() {
|
|
if (1 == 1) {
|
|
1 == 1
|
|
} else {
|
|
}
|
|
}
|
|
|
|
fun putInvertAsUnit(b: Boolean) {
|
|
if (1 == 1) {
|
|
} else if (!b) {
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
putNumberCompareAsUnit()
|
|
putNumberCompareAsVoid()
|
|
putInvertAsUnit(true)
|
|
return "OK"
|
|
}
|