getValue()/setValue() should be marked with 'operator'
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
annotation class Ann
|
||||
|
||||
class CustomDelegate {
|
||||
public fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||
fun setValue(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||
operator fun setValue(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||
}
|
||||
|
||||
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@setparam:Ann<!>
|
||||
|
||||
Reference in New Issue
Block a user