Files
kotlin-fork/compiler/testData/codegen/box/jvmStatic/privateSetter.kt
T
2016-11-09 21:41:12 +03:00

27 lines
436 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// FILE: JavaClass.java
class JavaClass {
public static String test()
{
return TestApp.getValue();
}
}
// FILE: Kotlin.kt
open class TestApp {
companion object {
@JvmStatic
var value: String = "OK"
private set
}
}
fun box(): String {
return JavaClass.test()
}