Files
kotlin-fork/js/js.translator/testData/box/jsAstOptimizations/logicalOperators.kt
T
2024-02-23 15:16:31 +00:00

14 lines
262 B
Kotlin
Vendored

val a = true
val b = true
val c = true
fun foo() = true
fun bar() = true
// EXPECT_GENERATED_JS: function=test expect=logicalOperators.js
fun test(): Boolean = (!a || (b && c)) && foo() || bar()
fun box(): String {
return if (test()) "OK" else "FAILED"
}