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

28 lines
528 B
Plaintext
Vendored

// FILE: first.before.kt
// "class org.jetbrains.kotlin.idea.quickfix.ImportFix" "false"
// ERROR: Unresolved reference: foo()["str"]
// ERROR: No get method providing array access
// ACTION: Create extension function 'Some.get'
// ACTION: Create member function 'Some.get'
// ACTION: Replace overloaded operator with function call
package testing
import some.Some
fun foo(): Some = Some()
fun testing() {
foo()<caret>["str"]
}
// FILE: second.kt
package some
public class Some
operator fun Some.set(s: String) {}