Files
kotlin-fork/js/js.translator/testData/box/callableReference/property/kClassInstanceIsInitializedFirst.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

18 lines
336 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1118
// This test was adapted from compiler/testData/codegen/box/callableReference/property/.
package foo
import kotlin.reflect.KProperty1
class A {
companion object {
val ref: KProperty1<A, String> = A::foo
}
val foo: String = "OK"
}
fun box(): String {
return A.ref.get(A())
}