3d422b47cb
(half of KT-5208)
21 lines
495 B
Plaintext
Vendored
21 lines
495 B
Plaintext
Vendored
// FILE: first.before.kt
|
|
// "Import" "false"
|
|
// ERROR: Missing 'getValue(Nothing?, KProperty<*>)' method on delegate of type 'String'
|
|
// ACTION: To raw string literal
|
|
|
|
package b
|
|
|
|
val x: String by "<caret>" // <--- should not propose to auto-import a.getValue,
|
|
// because that would not fix the error
|
|
|
|
// FILE: second.kt
|
|
package a
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
fun String.getValue(x: Any?, y: KProperty<*>) = ""
|
|
|
|
|
|
|
|
// FILE: first.after.kt
|
|
// Should not be checked |