mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
default -> companion: replace all mentions of default and default object
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait TheTrait {
|
||||
default object {
|
||||
companion object {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package test
|
||||
|
||||
internal trait TheTrait {
|
||||
|
||||
internal default object Default {
|
||||
/*primary*/ private constructor Default()
|
||||
internal companion object Companion {
|
||||
/*primary*/ private constructor Companion()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
class Some {
|
||||
TestAnnotation default object {
|
||||
TestAnnotation companion object {
|
||||
annotation class TestAnnotation
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@ package test
|
||||
internal final class Some {
|
||||
/*primary*/ public constructor Some()
|
||||
|
||||
test.Some.Default.TestAnnotation() internal default object Default {
|
||||
/*primary*/ private constructor Default()
|
||||
test.Some.Companion.TestAnnotation() internal companion object Companion {
|
||||
/*primary*/ private constructor Companion()
|
||||
|
||||
internal final annotation class TestAnnotation : kotlin.Annotation {
|
||||
/*primary*/ public constructor TestAnnotation()
|
||||
|
||||
Reference in New Issue
Block a user