getValue()/setValue() should be marked with 'operator'
This commit is contained in:
@@ -4,9 +4,9 @@ var a: Int by Delegate()
|
||||
private set
|
||||
|
||||
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, i: Int) {}
|
||||
operator fun setValue(t: Any?, p: PropertyMetadata, i: Int) {}
|
||||
}
|
||||
Reference in New Issue
Block a user