class Inv inline operator fun Inv.invoke() {} operator fun Inv.get(i: Int): Inv = this fun test(a: Inv) { a[1]() }