Generate private constructor for object

#KT-9510 Fixed
This commit is contained in:
Michael Bogdanov
2015-10-08 16:53:01 +03:00
parent a3e0205aec
commit 8198ac77cb
9 changed files with 24 additions and 9 deletions
@@ -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
}