default -> companion: replace all mentions of default and default object
This commit is contained in:
+2
-2
@@ -18,6 +18,6 @@ src/usageWithFunctionLiteral.kt
|
||||
End of files
|
||||
COMPILATION FAILED
|
||||
Expression 'SamInterface' cannot be invoked as a function. The function invoke() is not found
|
||||
Please specify constructor invocation; classifier 'SamInterface' does not have a default object
|
||||
Please specify constructor invocation; classifier 'SamInterface' does not have a companion object
|
||||
Expression 'SamInterface' cannot be invoked as a function. The function invoke() is not found
|
||||
Please specify constructor invocation; classifier 'SamInterface' does not have a default object
|
||||
Please specify constructor invocation; classifier 'SamInterface' does not have a companion object
|
||||
@@ -1,5 +1,5 @@
|
||||
Cleaning output files:
|
||||
out/production/module/test/Klass$Default.class
|
||||
out/production/module/test/Klass$Companion.class
|
||||
out/production/module/test/Klass.class
|
||||
End of files
|
||||
Compiling files:
|
||||
@@ -7,7 +7,7 @@ src/const.kt
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/Usage.class
|
||||
out/production/module/test/Klass$Default.class
|
||||
out/production/module/test/Klass$Companion.class
|
||||
out/production/module/test/Klass.class
|
||||
End of files
|
||||
Compiling files:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
class Klass {
|
||||
default object {
|
||||
companion object {
|
||||
// Old and new constant values are different, but their hashes are the same
|
||||
val CONST = "BF"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
class Klass {
|
||||
default object {
|
||||
companion object {
|
||||
// Old and new constant values are different, but their hashes are the same
|
||||
val CONST = "Ae"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
Cleaning output files:
|
||||
out/production/module/test/Klass$Default.class
|
||||
out/production/module/test/Klass$Companion.class
|
||||
out/production/module/test/Klass.class
|
||||
End of files
|
||||
Compiling files:
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
class Klass {
|
||||
default object {
|
||||
companion object {
|
||||
val CONST = "bar"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
class Klass {
|
||||
default object {
|
||||
companion object {
|
||||
val CONST = "bar"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user