default -> companion: replace all mentions of default and default object
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// SIBLING:
|
||||
public class A {
|
||||
default object {
|
||||
companion object {
|
||||
private val t: Int = 1
|
||||
}
|
||||
fun f() {
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Property A.Default.t will become invisible after extraction
|
||||
Property A.Companion.t will become invisible after extraction
|
||||
@@ -5,7 +5,7 @@ class MyClass {
|
||||
return coProp + 10</selection>
|
||||
}
|
||||
|
||||
default object {
|
||||
companion object {
|
||||
val coProp = 1
|
||||
|
||||
fun coFun() {
|
||||
|
||||
@@ -4,7 +4,7 @@ class MyClass {
|
||||
return i()
|
||||
}
|
||||
|
||||
default object {
|
||||
companion object {
|
||||
val coProp = 1
|
||||
|
||||
fun coFun() {
|
||||
|
||||
@@ -6,7 +6,7 @@ class A {
|
||||
return coProp + 10</selection>
|
||||
}
|
||||
|
||||
default object {
|
||||
companion object {
|
||||
val coProp = 1
|
||||
|
||||
fun coFun() {
|
||||
|
||||
@@ -5,7 +5,7 @@ class A {
|
||||
return i()
|
||||
}
|
||||
|
||||
default object {
|
||||
companion object {
|
||||
val coProp = 1
|
||||
|
||||
fun coFun() {
|
||||
|
||||
@@ -6,7 +6,7 @@ class MyClass {
|
||||
}
|
||||
|
||||
public class P {
|
||||
default object {
|
||||
companion object {
|
||||
val a = 1
|
||||
fun foo() = 1
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ class MyClass {
|
||||
}
|
||||
|
||||
public class P {
|
||||
default object {
|
||||
companion object {
|
||||
val a = 1
|
||||
fun foo() = 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user