// FILE: first.before.kt // "Import" "true" // ERROR: Expression 'a' of type 'A' cannot be invoked as a function. The function 'invoke()' is not found package b import a.A fun main() { val a = A() a() } //----------------------- // FILE: second.kt // "Import" "true" // ERROR: Expression 'a' of type 'A' cannot be invoked as a function. The function 'invoke()' is not found package a class A operator fun A.invoke() = 42 //----------------------- // FILE: first.after.kt // "Import" "true" // ERROR: Expression 'a' of type 'A' cannot be invoked as a function. The function 'invoke()' is not found package b import a.A import a.invoke fun main() { val a = A() a() } //-----------------------