// FILE: first.before.kt // "class org.jetbrains.kotlin.idea.quickfix.ImportFix" "false" // ERROR: Unresolved reference: foo()["str"] // ERROR: No set method providing array access // ACTION: Create extension function 'Some.set' // ACTION: Create member function 'Some.set' // ACTION: Replace overloaded operator with function call package testing import some.Some fun foo(): Some = Some() fun testing() { foo()["str"] = 1 } // FILE: second.kt package some public class Some operator fun Some.get(s: String) {}