10648f44ac
#KT-10212 Fixed
33 lines
517 B
Plaintext
Vendored
33 lines
517 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
|
|
|
|
fun Some.get(s: String) {}
|
|
|
|
|
|
|
|
// FILE: first.after.kt
|
|
// Should not be checked
|