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
|
||||
}
|
||||
@@ -4,4 +4,4 @@ class A {
|
||||
}
|
||||
}
|
||||
// A and companion object constructor call
|
||||
// 4 ALOAD 0
|
||||
// 3 ALOAD 0
|
||||
+1
-1
@@ -4,5 +4,5 @@ class A {
|
||||
}
|
||||
}
|
||||
// A and companion object constructor call
|
||||
// 4 ALOAD 0
|
||||
// 3 ALOAD 0
|
||||
// 1 synthetic access\$getR
|
||||
|
||||
Reference in New Issue
Block a user