Files
kotlin-fork/idea/testData/quickfix/variables/changeMutability/canBeVal/delegatedProperty2.kt
T
Dmitry Gridin 147521d6cb Add intention to introduce import alias
#KT-16118 Fixed
 #KT-30007 Fixed
2019-02-21 12:25:09 +03:00

15 lines
459 B
Kotlin
Vendored

// "Change to val" "false"
// ACTION: Create extension function 'Delegate.getValue'
// ACTION: Create member function 'Delegate.getValue'
// ACTION: Introduce import alias
// ERROR: Missing 'getValue(Nothing?, KProperty<*>)' method on delegate of type 'Delegate'
import kotlin.reflect.KProperty
fun test() {
var foo: String by <caret>Delegate()
}
class Delegate {
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: String) {
}
}