default -> companion: replace all mentions of default and default object
This commit is contained in:
@@ -20,7 +20,7 @@ public class X(bar: String? = A.BAR): A() {
|
||||
super<A>.foo()
|
||||
}
|
||||
|
||||
default object: A() {
|
||||
companion object: A() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ Parameter type (10: 16) fun foo(a: A) {
|
||||
Parameter type (32: 14) fun X.bar(a: A = A()) {
|
||||
Super type qualifier (20: 15) super<A>.foo()
|
||||
Supertype (1: 39) public class X(bar: String? = A.BAR): A() {
|
||||
Supertype (23: 21) default object: A() {
|
||||
Supertype (23: 23) companion object: A() {
|
||||
Supertype (28: 11) object O: A() {
|
||||
Target type of 'is' operation (37: 24) return if (this is A) this as A else null
|
||||
Usage in cast target type (37: 35) return if (this is A) this as A else null
|
||||
|
||||
@@ -20,7 +20,7 @@ public class X(bar: String? = A.BAR): A() {
|
||||
super<A>.foo()
|
||||
}
|
||||
|
||||
default object: A() {
|
||||
companion object: A() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ public class X(bar: String? = A.BAR): A() {
|
||||
super<A>.foo()
|
||||
}
|
||||
|
||||
default object: A() {
|
||||
companion object: A() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@ Function call (7: 11) A.foos()
|
||||
New instance creation (2: 20) var next: A? = A()
|
||||
New instance creation (32: 18) fun X.bar(a: A = A()) {
|
||||
Supertype (1: 39) public class X(bar: String? = A.BAR): A() {
|
||||
Supertype (23: 21) default object: A() {
|
||||
Supertype (23: 23) companion object: A() {
|
||||
Supertype (28: 11) object O: A() {
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ public class X(bar: String? = A.BAR): A() {
|
||||
super<A>.foo()
|
||||
}
|
||||
|
||||
default object: A() {
|
||||
companion object: A() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ Parameter type (10: 16) fun foo(a: A) {
|
||||
Parameter type (32: 14) fun X.bar(a: A = A()) {
|
||||
Super type qualifier (20: 15) super<A>.foo()
|
||||
Supertype (1: 39) public class X(bar: String? = A.BAR): A() {
|
||||
Supertype (23: 21) default object: A() {
|
||||
Supertype (23: 23) companion object: A() {
|
||||
Supertype (28: 11) object O: A() {
|
||||
Target type of 'is' operation (37: 24) return if (this is A) this as A else null
|
||||
Usage in cast target type (37: 35) return if (this is A) this as A else null
|
||||
|
||||
@@ -20,7 +20,7 @@ public class X(bar: String? = Outer.A.BAR): Outer.A() {
|
||||
super<Outer.A>.foo()
|
||||
}
|
||||
|
||||
default object: Outer.A() {
|
||||
companion object: Outer.A() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ Parameter type (10: 22) fun foo(a: Outer.A) {
|
||||
Parameter type (32: 20) fun X.bar(a: Outer.A = Outer.A()) {
|
||||
Super type qualifier (20: 21) super<Outer.A>.foo()
|
||||
Supertype (1: 51) public class X(bar: String? = Outer.A.BAR): Outer.A() {
|
||||
Supertype (23: 27) default object: Outer.A() {
|
||||
Supertype (23: 29) companion object: Outer.A() {
|
||||
Supertype (28: 17) object O: Outer.A() {
|
||||
Target type of 'is' operation (37: 30) return if (this is Outer.A) this as Outer.A else null
|
||||
Usage in cast target type (37: 47) return if (this is Outer.A) this as Outer.A else null
|
||||
|
||||
Reference in New Issue
Block a user