2f26480e6b
#KT-9482 Fixed #KT-9397 Fixed #KT-8060 Fixed
31 lines
513 B
Plaintext
Vendored
31 lines
513 B
Plaintext
Vendored
// FILE: first.before.kt
|
|
// "Import" "false"
|
|
// ERROR: Unresolved reference: foo()["str"]
|
|
// ERROR: No get method providing array access
|
|
// ACTION: Create extension function 'get'
|
|
// ACTION: Create member function '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) {}
|
|
|
|
|
|
// FILE: first.after.kt
|
|
// Empty File |