mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
Implement an intrinsic method for boolean.and operation, and replace ANDAND condition with a call to such intrinsic method.
16 lines
174 B
Kotlin
Vendored
16 lines
174 B
Kotlin
Vendored
val a = false
|
|
val b = false
|
|
val c = false
|
|
|
|
fun main() {
|
|
do {
|
|
"loop"
|
|
} while (a && b && c)
|
|
}
|
|
|
|
// 0 ICONST_0
|
|
// 0 ICONST_1
|
|
// 2 IFEQ
|
|
// 1 IFNE
|
|
// 3 IF
|
|
// 0 GOTO |