class Bar { operator fun get(vararg args: Int) {} } fun foo(a: Bar, i: Int) { a.get(i, 1) }