55cb9561c2
Split error reporting into two parts for incorrect and missing candidates. Missing function error is not reported on provideDelegate. Update error factory and default message for error. Update error texts in quick fix test data. #KT-16526 Fixed
15 lines
482 B
Kotlin
Vendored
15 lines
482 B
Kotlin
Vendored
// "Change to val" "false"
|
|
// ACTION: Create extension function 'Delegate.getValue'
|
|
// ACTION: Create member function 'Delegate.getValue'
|
|
// ACTION: Introduce import alias
|
|
// ERROR: Type 'Delegate' has no method 'getValue(Nothing?, KProperty<*>)' and thus it cannot serve as a delegate
|
|
import kotlin.reflect.KProperty
|
|
|
|
fun test() {
|
|
var foo: String by <caret>Delegate()
|
|
}
|
|
|
|
class Delegate {
|
|
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: String) {
|
|
}
|
|
} |