Files
kotlin-fork/idea/testData/shortenRefs/removeCompanionRefWithQualifiedReceiverInCalleeExpression.kt.after
T

13 lines
368 B
Plaintext
Vendored

class T {
interface Factory {
operator fun invoke(i: Int): IntPredicate
companion object {
inline operator fun invoke(crossinline f: (Int) -> IntPredicate) = object : Factory {
override fun invoke(i: Int) = f(i)
}
}
}
}
fun foo(): T.Factory = T.Factory { k -> IntPredicate { n -> n % k == 0 } }