Fix tests: "infix modifier required" and "operator modifier required" errors
This commit is contained in:
+2
-2
@@ -1,11 +1,11 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class TestDelegate() {
|
||||
fun getValue(thisRef: Any?, desc: KProperty<*>): Int {
|
||||
operator fun getValue(thisRef: Any?, desc: KProperty<*>): Int {
|
||||
return 10
|
||||
}
|
||||
|
||||
public open fun setValue(thisRef: Any?, desc: KProperty<*>, svalue : Int) {
|
||||
operator open fun setValue(thisRef: Any?, desc: KProperty<*>, svalue : Int) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class TestDelegate() {
|
||||
fun getValue(thisRef: Any?, desc: KProperty<*>): Int {
|
||||
operator fun getValue(thisRef: Any?, desc: KProperty<*>): Int {
|
||||
return 10
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user