Make $default methods non-private, avoid generating accessors for them
#KT-5786 Fixed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
var state: String = "Fail"
|
||||
|
||||
class A private(x: String = "OK") {
|
||||
init {
|
||||
state = x
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun foo() = A()
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
A.foo()
|
||||
return state
|
||||
}
|
||||
Reference in New Issue
Block a user