Files
kotlin-fork/js/js.translator/testData/box/native/library.kt
T
Svyatoslav Kuzmich 7b3416c99f [JS IR BE] Disable @library test for JS IR
@library is an internal annotation used in legacy stdlib to expose
declarations written in JS.

IR BE based stdlib will not include JS code thus annotation will not
be supported.
2019-03-15 13:53:21 +03:00

21 lines
367 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1282
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
package foo
@library class A() {
@library fun f() {
}
@library fun f(a: Int) {
}
}
@library fun getResult() = false
fun box(): String {
val a = A()
a.f()
a.f(2)
return if (getResult()) "OK" else "fail"
}