Update IDE tests to use KProperty instead of PropertyMetadata
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
|
||||
// OPTIONS: usages
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class Delegate() {
|
||||
fun <caret>getValue(thisRef: Any?, propertyMetadata: PropertyMetadata): String = ":)"
|
||||
fun <caret>getValue(thisRef: Any?, property: KProperty<*>): String = ":)"
|
||||
}
|
||||
|
||||
val p: String by Delegate()
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Property delegation (8: 15) val p: String by Delegate()
|
||||
Property delegation (10: 15) val p: String by Delegate()
|
||||
@@ -1,12 +1,14 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
|
||||
// OPTIONS: usages
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class Delegate() {
|
||||
fun getValue(thisRef: Any?, propertyMetadata: PropertyMetadata): String = ":)"
|
||||
fun setValue(thisRef: Any?, propertyMetadata: PropertyMetadata, value: String) {
|
||||
fun getValue(thisRef: Any?, property: KProperty<*>): String = ":)"
|
||||
fun setValue(thisRef: Any?, property: KProperty<*>, value: String) {
|
||||
}
|
||||
|
||||
fun <caret>propertyDelegated(propertyMetadata: PropertyMetadata) {
|
||||
fun <caret>propertyDelegated(property: KProperty<*>) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Property delegation (13: 15) var p: String by Delegate()
|
||||
Property delegation (15: 15) var p: String by Delegate()
|
||||
@@ -1,9 +1,11 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
|
||||
// OPTIONS: usages
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class Delegate() {
|
||||
fun getValue(thisRef: Any?, propertyMetadata: PropertyMetadata): String = ":)"
|
||||
fun <caret>setValue(thisRef: Any?, propertyMetadata: PropertyMetadata, value: String) {
|
||||
fun getValue(thisRef: Any?, property: KProperty<*>): String = ":)"
|
||||
fun <caret>setValue(thisRef: Any?, property: KProperty<*>, value: String) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Property delegation (11: 15) var p: String by Delegate()
|
||||
Property delegation (13: 15) var p: String by Delegate()
|
||||
Reference in New Issue
Block a user