Fix for KT-11034: Private set with @JvmStatic lateinit var doesn't compile

#KT-11034 Fixed
This commit is contained in:
Michael Bogdanov
2016-03-09 14:06:25 +03:00
parent 856dd7d909
commit 1a5bf33190
4 changed files with 57 additions and 24 deletions
@@ -0,0 +1,24 @@
// 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()
}