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,23 +1,21 @@
|
||||
public class C {
|
||||
companion object {
|
||||
public fun main(args: Array<String>) {
|
||||
when (args.size()) {
|
||||
1 -> {
|
||||
run {
|
||||
val a = 1
|
||||
System.out.print("1")
|
||||
}
|
||||
run {
|
||||
val a = 2
|
||||
System.out.print("2")
|
||||
}
|
||||
public object C {
|
||||
public fun main(args: Array<String>) {
|
||||
when (args.size()) {
|
||||
1 -> {
|
||||
run {
|
||||
val a = 1
|
||||
System.out.print("1")
|
||||
}
|
||||
|
||||
2 -> {
|
||||
run {
|
||||
val a = 2
|
||||
System.out.print("2")
|
||||
}
|
||||
}
|
||||
|
||||
2 -> {
|
||||
val a = 2
|
||||
System.out.print("2")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user