Files
kotlin-fork/js/js.translator/testData/dynamic/cases/compareTo.kt
T
2014-12-11 13:17:49 +03:00

21 lines
397 B
Kotlin

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"
}