mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
Implement an intrinsic method for boolean.and operation, and replace ANDAND condition with a call to such intrinsic method.
18 lines
199 B
Kotlin
Vendored
18 lines
199 B
Kotlin
Vendored
val a = false
|
|
val b = false
|
|
val c = false
|
|
|
|
fun main() {
|
|
if (!(a && b && c)) {
|
|
"then"
|
|
} else {
|
|
"else"
|
|
}
|
|
}
|
|
|
|
// 0 ICONST_0
|
|
// 0 ICONST_1
|
|
// 2 IFEQ
|
|
// 1 IFNE
|
|
// 3 IF
|
|
// 1 GOTO |