Files
kotlin-fork/js/js.translator/testData/box/propertyAccess/privatePropertyAccessFromMethod.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
286 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1114
// ONLY_THIS_QUALIFIED_REFERENCES: foo_0
package foo
object A {
private val foo = 23
fun bar(): Int {
return foo
}
}
fun box(): String {
var result = A.bar()
if (result != 23) return "failed: ${result}"
return "OK"
}