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
40 lines
780 B
Plaintext
Vendored
40 lines
780 B
Plaintext
Vendored
// FILE: first.before.kt
|
|
// "Import" "true"
|
|
// ERROR: Type 'DelegateImpl<Int>' has no method 'getValue(BigTest, KProperty<*>)' and thus it cannot serve as a delegate
|
|
|
|
package testing
|
|
|
|
import some.DelegateImpl
|
|
|
|
class BigTest {
|
|
val a by <caret>DelegateImpl<Int>()
|
|
}
|
|
|
|
|
|
|
|
// FILE: second.kt
|
|
package some
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
class DelegateImpl<T> {
|
|
val value: T = null!!
|
|
}
|
|
|
|
public operator fun <T> DelegateImpl<T>.getValue(thisRef: Any?, property: KProperty<*>): T = value
|
|
|
|
|
|
|
|
// FILE: first.after.kt
|
|
// "Import" "true"
|
|
// ERROR: Type 'DelegateImpl<Int>' has no method 'getValue(BigTest, KProperty<*>)' and thus it cannot serve as a delegate
|
|
|
|
package testing
|
|
|
|
import some.DelegateImpl
|
|
import some.getValue
|
|
|
|
class BigTest {
|
|
val a by <caret>DelegateImpl<Int>()
|
|
}
|