On 1/12/21 12:58 PM, cc wrote: > void send(T query, void delegate(T.RESPONSE) callback) {
That wants a delegate that takes a T.RESPONSE (PingResponse in this case). However, the following lambda is in fact a template:
> send(PingQuery("helo"), (resp) { You specify the type there and it works: send(PingQuery("helo"), (PingResponse resp) { Ali