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
13 lines
602 B
Kotlin
Vendored
13 lines
602 B
Kotlin
Vendored
// "Change to val" "false"
|
|
// ACTION: Create extension function 'Delegate.getValue', function 'Delegate.setValue'
|
|
// ACTION: Create member function 'Delegate.getValue', function 'Delegate.setValue'
|
|
// ACTION: Introduce import alias
|
|
// ERROR: Type 'Delegate' has no method 'getValue(Nothing?, KProperty<*>)' and thus it cannot serve as a delegate
|
|
// ERROR: Type 'Delegate' has no method 'setValue(Nothing?, KProperty<*>, String)' and thus it cannot serve as a delegate for var (read-write property)
|
|
import kotlin.reflect.KProperty
|
|
|
|
fun test() {
|
|
var foo: String by <caret>Delegate()
|
|
}
|
|
|
|
class Delegate |