Files
kotlin-fork/js/js.translator/testData/box/dynamic/compareTo.kt
T
2018-04-19 13:17:28 +03:00

23 lines
456 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1128
package foo
fun box(): String {
val a: dynamic = 12
var b: dynamic = 33.4
var c: dynamic = "text"
val d: dynamic = true
testFalse { a > b }
testTrue { b <= 34 }
testTrue { c >= "text" }
testFalse { c <= "abc" }
testTrue { d >= 1 }
testFalse { d <= 0 }
testTrue { d && true }
testTrue { false || d }
testFalse { d && a < c }
return "OK"
}