default -> companion: replace all mentions of default and default object

This commit is contained in:
Pavel V. Talanov
2015-03-16 14:56:06 +03:00
parent a0783757e8
commit 06916d98c6
1019 changed files with 2468 additions and 2469 deletions
@@ -1,10 +1,10 @@
//no nested class access via instance reference error
fun test() {
A.Default.f(<!TYPE_MISMATCH!>""<!>)
A.Companion.f(<!TYPE_MISMATCH!>""<!>)
}
class A() {
default object {
companion object {
object f {
fun invoke(i: Int) = i
}
@@ -8,8 +8,8 @@ internal final class A {
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
internal default object Default {
private constructor Default()
internal companion object Companion {
private constructor Companion()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
@@ -5,5 +5,5 @@ object O1 : Trait<Int>
object O2 : Trait<<!UPPER_BOUND_VIOLATED!>String<!>>
class C {
default object : Trait<<!UPPER_BOUND_VIOLATED!>IntRange<!>>
companion object : Trait<<!UPPER_BOUND_VIOLATED!>IntRange<!>>
}
@@ -6,8 +6,8 @@ internal final class C {
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
internal default object Default : Trait<kotlin.IntRange> {
private constructor Default()
internal companion object Companion : Trait<kotlin.IntRange> {
private constructor Companion()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String