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
@@ -69,7 +69,7 @@ const val nonConstInitializer = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>foo()<!>
// ------------------
class Delegate {
fun getValue(thisRef: Any?, prop: PropertyMetadata): Int = 1
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): Int = 1
fun setValue(thisRef: Any?, prop: PropertyMetadata, value: Int) = Unit
operator fun setValue(thisRef: Any?, prop: PropertyMetadata, value: Int) = Unit
}