7b3416c99f
@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.
21 lines
367 B
Kotlin
Vendored
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"
|
|
}
|