Files
kotlin-fork/js/js.translator/testData/box/dynamic/is.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

23 lines
309 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1126
// FILE: is.kt
package foo
class A
external class B
fun box(): String {
val a: dynamic = A()
testTrue { a is A }
testFalse { a is B }
val b: dynamic = B()
testTrue { b is B }
testFalse { b is A }
return "OK"
}
// FILE: is.js
function B() {
}