[JS IR BE] Add JsExport annotations

This commit is contained in:
Svyatoslav Kuzmich
2019-06-27 15:12:14 +03:00
parent 685597d20a
commit 69962cbf8c
22 changed files with 91 additions and 31 deletions
@@ -1,6 +1,7 @@
// SKIP_MINIFICATION
// Contains calls from external JS code
@JsExport
open class A {
@JsName("foo")
open protected fun foo(n: Int) = 23
@@ -9,6 +10,7 @@ open class A {
fun bar(n: Int) = foo(n) + 100
}
@JsExport
open class B {
@JsName("foo")
protected fun foo(n: Int) = 42