class B(val n: Int) { operator fun invoke(i: Int){} } fun f() = B(1) fun test() { f(1).invoke(2) f(2)(2) }