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:
@@ -9,12 +9,10 @@ class C(arg1: Int, arg2: Int, arg3: Int) {
|
||||
}
|
||||
}
|
||||
|
||||
public class User {
|
||||
companion object {
|
||||
public fun main() {
|
||||
val c1 = C(1, 2, 3)
|
||||
val c2 = C(5, 6)
|
||||
val c3 = C(7)
|
||||
}
|
||||
public object User {
|
||||
public fun main() {
|
||||
val c1 = C(1, 2, 3)
|
||||
val c2 = C(5, 6)
|
||||
val c3 = C(7)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user