2f26480e6b
#KT-9482 Fixed #KT-9397 Fixed #KT-8060 Fixed
45 lines
592 B
Plaintext
Vendored
45 lines
592 B
Plaintext
Vendored
// FILE: first.before.kt
|
|
// "Import" "true"
|
|
// ERROR: Unresolved reference: foo()["str"]
|
|
// ERROR: No get method providing array access
|
|
|
|
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.get(s: String) {}
|
|
|
|
|
|
|
|
// FILE: first.after.kt
|
|
// "Import" "true"
|
|
// ERROR: Unresolved reference: foo()["str"]
|
|
// ERROR: No get method providing array access
|
|
|
|
package testing
|
|
|
|
import some.Some
|
|
import some.get
|
|
|
|
fun foo(): Some = Some()
|
|
|
|
fun testing() {
|
|
foo()<caret>["str"]
|
|
}
|
|
|
|
|
|
|