Add test case to detect name clash in stdlib-js

This commit is contained in:
Roman Artemev
2018-05-28 19:14:56 +03:00
committed by Roman Artemev
parent 689a492b9a
commit 06009a532b
3 changed files with 26 additions and 0 deletions
@@ -0,0 +1,16 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1094
package foo
import kotlin.reflect.*
fun box(): String {
try {
"fail".unsafeCast<KClass<*>>().js
return "fail try"
} catch (cce: ClassCastException) {
return "OK"
}
return "fail common"
}