Files
kotlin-fork/idea/testData/quickfix/autoImports/delegateNoOperator.test
T
2016-09-27 18:05:26 +03:00

17 lines
488 B
Plaintext
Vendored

// FILE: first.before.kt
// "class org.jetbrains.kotlin.idea.quickfix.ImportFix" "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<*>) = ""