Fix compiler tests

This commit is contained in:
Yan Zhulanow
2015-09-21 23:40:34 +03:00
parent 35362a0f3b
commit 6db9344659
319 changed files with 1034 additions and 1032 deletions
@@ -1,8 +1,8 @@
// !CHECK_TYPE
interface G {
fun get(x: Int, y: Int): Int = x + y
fun set(x: Int, y: Int, value: Int) {}
operator fun get(x: Int, y: Int): Int = x + y
operator fun set(x: Int, y: Int, value: Int) {}
}
fun foo1(a: Int?, b: G) {
@@ -7,8 +7,8 @@ public fun foo4(/*0*/ a: kotlin.Int?, /*1*/ b: G): kotlin.Unit
public interface G {
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open fun get(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.Int): kotlin.Int
public open operator fun get(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.Int): kotlin.Int
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open fun set(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.Int, /*2*/ value: kotlin.Int): kotlin.Unit
public open operator fun set(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.Int, /*2*/ value: kotlin.Int): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
@@ -3,7 +3,7 @@
interface A
interface B : A
fun B.compareTo(b: B) = if (this == b) 0 else 1
operator fun B.compareTo(b: B) = if (this == b) 0 else 1
fun foo(a: A): Boolean {
val result = (a as B) < <!DEBUG_INFO_SMARTCAST!>a<!>
@@ -2,7 +2,7 @@ package
public fun bar(/*0*/ a: A, /*1*/ b: B): kotlin.Boolean
public fun foo(/*0*/ a: A): kotlin.Boolean
public fun B.compareTo(/*0*/ b: B): kotlin.Int
public operator fun B.compareTo(/*0*/ b: B): kotlin.Int
public interface A {
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
@@ -3,7 +3,7 @@
interface A
interface B : A
fun B.plus(b: B) = if (this == b) b else this
operator fun B.plus(b: B) = if (this == b) b else this
fun foo(a: A): B {
val result = (a as B) + <!DEBUG_INFO_SMARTCAST!>a<!>
@@ -2,7 +2,7 @@ package
public fun bar(/*0*/ a: A, /*1*/ b: B): B
public fun foo(/*0*/ a: A): B
public fun B.plus(/*0*/ b: B): B
public operator fun B.plus(/*0*/ b: B): B
public interface A {
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
@@ -1,6 +1,6 @@
// !CHECK_TYPE
fun Int.component1() = "a"
operator fun Int.component1() = "a"
fun foo(a: Number) {
val (x) = a as Int
@@ -1,4 +1,4 @@
package
public fun foo(/*0*/ a: kotlin.Number): kotlin.Unit
public fun kotlin.Int.component1(): kotlin.String
public operator fun kotlin.Int.component1(): kotlin.String