Fix tests: "infix modifier required" and "operator modifier required" errors

This commit is contained in:
Yan Zhulanow
2015-11-26 15:56:56 +03:00
parent a3ff3ffc45
commit 9d1af5a17e
635 changed files with 1283 additions and 1617 deletions
@@ -6,6 +6,6 @@ annotation class Anno
class Class {
@Anno val x: Int by object {
fun getValue(thiz: Class, data: KProperty<*>) = null!!
operator fun getValue(thiz: Class, data: KProperty<*>) = null!!
}
}
@@ -5,5 +5,5 @@ import kotlin.reflect.KProperty
annotation class Anno
@Anno val x: Int by object {
fun getValue(thiz: Any?, data: KProperty<*>) = null!!
operator fun getValue(thiz: Any?, data: KProperty<*>) = null!!
}
@@ -1,7 +1,7 @@
package test
public open class Max {
public open fun max<T : Any?>(p0 : Collection<T>?): T? where T : Comparable<T>? {
public open fun <T : Any?> max(p0 : Collection<T>?): T? where T : Comparable<T>? {
throw UnsupportedOperationException()
}
}
@@ -8,6 +8,6 @@ class A {
}
class MyProperty<T> {
fun getValue(t: T, p: KProperty<*>): Int = 42
fun setValue(t: T, p: KProperty<*>, i: Int) {}
operator fun getValue(t: T, p: KProperty<*>): Int = 42
operator fun setValue(t: T, p: KProperty<*>, i: Int) {}
}
@@ -9,6 +9,6 @@ public final class A {
public final class MyProperty</*0*/ T> {
/*primary*/ public constructor MyProperty</*0*/ T>()
public final fun getValue(/*0*/ t: T, /*1*/ p: kotlin.reflect.KProperty<*>): kotlin.Int
public final fun setValue(/*0*/ t: T, /*1*/ p: kotlin.reflect.KProperty<*>, /*2*/ i: kotlin.Int): kotlin.Unit
public final operator fun getValue(/*0*/ t: T, /*1*/ p: kotlin.reflect.KProperty<*>): kotlin.Int
public final operator fun setValue(/*0*/ t: T, /*1*/ p: kotlin.reflect.KProperty<*>, /*2*/ i: kotlin.Int): kotlin.Unit
}