KT-5287 J2K: Convert class with private constructor and static functions to "object" instead of class with "class object"
#KT-5287 Fixed
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class Outer {
|
||||
object Outer {
|
||||
private class Nested1() {
|
||||
|
||||
public constructor(a: Int) : this() {
|
||||
@@ -48,13 +48,10 @@ class Outer {
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
fun foo() {
|
||||
val nested1 = Nested1(1)
|
||||
val nested2 = Nested2(2)
|
||||
val nested3 = Nested3(3)
|
||||
val nested4 = Nested4(4)
|
||||
}
|
||||
fun foo() {
|
||||
val nested1 = Nested1(1)
|
||||
val nested2 = Nested2(2)
|
||||
val nested3 = Nested3(3)
|
||||
val nested4 = Nested4(4)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user