Fix tests: "infix modifier required" and "operator modifier required" errors
This commit is contained in:
+1
-1
@@ -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!!
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user