Files
kotlin-fork/js/js.translator/testData/box/native/library.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

20 lines
331 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1110
@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"
}