[JS IR BE] Support @JsName in bridges

This commit is contained in:
Svyatoslav Kuzmich
2019-02-12 20:46:06 +03:00
parent e09a6f0007
commit 1184c158e4
6 changed files with 49 additions and 24 deletions
@@ -1,6 +1,5 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1303
package foo
open class A {
open val x: Int
@@ -30,7 +29,7 @@ class B : A(), C {
override val z = 55
}
fun getPackage() = js("return JS_TESTS.foo")
fun getPackage() = js("JS_TESTS")
fun box(): String {
val a = B()