Drop resolution of deprecated plus/minus/get/set conventions
Also remove the corresponding quick fix
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
// "Rename to 'getValue'" "true"
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class CustomDelegate
|
||||
|
||||
operator fun CustomDelegate.get(thisRef: Any?, prop: KProperty<*>): String = ""
|
||||
|
||||
class Example {
|
||||
val a: String <caret>by CustomDelegate()
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
// "Rename to 'getValue'" "true"
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class CustomDelegate
|
||||
|
||||
operator fun CustomDelegate.getValue(thisRef: Any?, prop: KProperty<*>): String = ""
|
||||
|
||||
class Example {
|
||||
val a: String by CustomDelegate()
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
// "Rename to 'setValue'" "true"
|
||||
// ERROR: 'get' method convention on type 'CustomDelegate' is no longer supported. Rename to 'getValue'
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class CustomDelegate {
|
||||
operator fun get(thisRef: Any?, prop: KProperty<*>): String = ""
|
||||
operator fun set(thisRef: Any?, prop: KProperty<*>, value: String) {}
|
||||
}
|
||||
|
||||
class Example {
|
||||
var a: String <caret>by CustomDelegate()
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
// "Rename to 'setValue'" "true"
|
||||
// ERROR: 'get' method convention on type 'CustomDelegate' is no longer supported. Rename to 'getValue'
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class CustomDelegate {
|
||||
operator fun get(thisRef: Any?, prop: KProperty<*>): String = ""
|
||||
operator fun setValue(thisRef: Any?, prop: KProperty<*>, value: String) {}
|
||||
}
|
||||
|
||||
class Example {
|
||||
var a: String by CustomDelegate()
|
||||
}
|
||||
Reference in New Issue
Block a user