getValue()/setValue() should be marked with 'operator'

This commit is contained in:
Yan Zhulanow
2015-10-12 01:59:40 +03:00
parent bc3d1ddda0
commit dc8e796e49
121 changed files with 242 additions and 231 deletions
@@ -1,8 +1,8 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION
class UsefulClass(val param: Int = 2) {
fun getValue(instance: Any, property: PropertyMetadata) : Int = 1
fun setValue(instance: Any, property: PropertyMetadata, value: Int) {}
operator fun getValue(instance: Any, property: PropertyMetadata) : Int = 1
operator fun setValue(instance: Any, property: PropertyMetadata, value: Int) {}
@Deprecated("message")
fun member() {}