getValue()/setValue() should be marked with 'operator'
This commit is contained in:
+2
-2
@@ -7,9 +7,9 @@ class A {
|
||||
var aTopLevel: Int by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>Delegate()<!>
|
||||
|
||||
class Delegate {
|
||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
fun setValue(t: Any?, p: PropertyMetadata, a: Int, c: Int) {}
|
||||
operator fun setValue(t: Any?, p: PropertyMetadata, a: Int, c: Int) {}
|
||||
}
|
||||
Reference in New Issue
Block a user