Files
kotlin-fork/js/js.translator/testData/box/dynamic/identityEquals.kt
T
2018-09-12 09:49:25 +03:00

30 lines
639 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1313
package foo
fun box(): String {
val a: dynamic = 12
var b: dynamic = 33.4
var c: dynamic = "text"
val d: dynamic = true
val v: dynamic = 42
val tt: dynamic = "object t {}"
testFalse { a === 34 }
testFalse { a === "34" }
testTrue { a === 12 }
testFalse { a === "12" }
testFalse { a !== 12 }
testTrue { a !== "12" }
testTrue { c === "text" }
testFalse { d === 1 }
testFalse { d === 0 }
testFalse { c !== "text" }
testFalse { v === n }
testFalse { tt === t }
testFalse { v === bar }
testTrue { n !== bar }
return "OK"
}