score:2

Accepted answer

there actually is no implicit conversion going on here at all - jsonget is an instance of testget, which provides an unapply method that returns an option[(list[string], req)]. scala allows calling unapply as an infix method, so that construct is sugar for:

case jsonget("cout" :: nil, _) => // the second argument is the req instance

More Query from same tag