28 lines
528 B
Plaintext
Vendored
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) {}
|