default -> companion: replace all mentions of default and default object
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
default object {
|
||||
companion object {
|
||||
val bar: String
|
||||
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
class A {
|
||||
default object {
|
||||
companion object {
|
||||
private var r: Int = 1;
|
||||
|
||||
fun test(): Int {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
open class Bar<T>(val prop: String)
|
||||
class Foo {
|
||||
default object : Bar<Foo>("OK") {
|
||||
companion object : Bar<Foo>("OK") {
|
||||
val p = Foo.prop
|
||||
val p2 = prop
|
||||
val p3 = this.prop
|
||||
|
||||
Reference in New Issue
Block a user