Generate private constructor for object
#KT-9510 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
public open class Outer private constructor(val s: String) {
|
||||
|
||||
companion object {
|
||||
fun test () = { Outer("OK") }()
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Outer.test().s
|
||||
}
|
||||
Reference in New Issue
Block a user