Fix for KT-11034: Private set with @JvmStatic lateinit var doesn't compile
#KT-11034 Fixed
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user