Fix for KT-8928: NoSuchMethodError on private property setter in companion object
#KT-8928 Fixed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class App {
|
||||
fun init() {
|
||||
s = "OK"
|
||||
}
|
||||
companion object {
|
||||
var s: String = "Fail"
|
||||
private set
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
App().init()
|
||||
|
||||
return App.s
|
||||
}
|
||||
Reference in New Issue
Block a user