blob: db36f99391b8c6e9adab1ef880e4baa014db8015 [file]
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
// ^ FUNCTION_EXPECTED: Expression 's' of type 'Any' cannot be invoked as a function. The function 'invoke()' is not found
object A {
private val s = object {
inline operator fun invoke(): String = "OK"
}
fun value() = s()
}
fun box(): String = A.value()