default -> companion: replace all mentions of default and default object
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
public class Short {
|
||||
default object {
|
||||
companion object {
|
||||
public fun valueOf(value: String): Short {
|
||||
return Short()
|
||||
}
|
||||
@@ -9,7 +9,7 @@ public class Short {
|
||||
}
|
||||
|
||||
class Test {
|
||||
default object {
|
||||
companion object {
|
||||
public fun test() {
|
||||
test.Short.valueOf("1")
|
||||
test.Short.valueOf("1")
|
||||
|
||||
@@ -3,7 +3,7 @@ class S {
|
||||
return true
|
||||
}
|
||||
|
||||
default object {
|
||||
companion object {
|
||||
var myI = 10
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
class S {
|
||||
default object {
|
||||
companion object {
|
||||
fun staticF(): Boolean {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ class S {
|
||||
return true
|
||||
}
|
||||
|
||||
default object {
|
||||
companion object {
|
||||
fun sI(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class S {
|
||||
default object {
|
||||
companion object {
|
||||
fun sB(): Boolean {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user