2f26480e6b
#KT-9482 Fixed #KT-9397 Fixed #KT-8060 Fixed
40 lines
603 B
Plaintext
Vendored
40 lines
603 B
Plaintext
Vendored
// FILE: first.before.kt
|
|
// "Import" "true"
|
|
// ERROR: Unresolved reference: foo()["other"]
|
|
// ERROR: No set method providing array access
|
|
|
|
package testing
|
|
|
|
import some.Some
|
|
|
|
fun foo(): Some = Some()
|
|
|
|
fun testing() {
|
|
foo()<caret>["other"] = 1
|
|
}
|
|
|
|
|
|
|
|
// FILE: second.kt
|
|
package some
|
|
|
|
public class Some
|
|
|
|
operator fun Some.set(s: String) {}
|
|
|
|
|
|
// FILE: first.after.kt
|
|
// "Import" "true"
|
|
// ERROR: Unresolved reference: foo()["other"]
|
|
// ERROR: No set method providing array access
|
|
|
|
package testing
|
|
|
|
import some.Some
|
|
import some.set
|
|
|
|
fun foo(): Some = Some()
|
|
|
|
fun testing() {
|
|
foo()<caret>["other"] = 1
|
|
} |