https://kotlinlang.org logo
v

Vitaly Kravchenko

04/06/2018, 2:50 PM
Guys, I have two overloaded functions in Java code:
public Emitter emit(final String event, final Object... args) {
public Emitter emit(final String event, final Object[] args, final Ack ack) {
and trying to call the second one from Kotlin code:
socket.emit("subscribe", new.joinToString(","), Ack { println(it) })
but the first one is getting called. How can I call the second one?