Skip to content

Instantly share code, notes, and snippets.

@nefilim
Created August 27, 2013 15:12
Show Gist options
  • Save nefilim/6354892 to your computer and use it in GitHub Desktop.
Save nefilim/6354892 to your computer and use it in GitHub Desktop.
implicit def serviceRequest2GeneratedMessage[R <: ServiceResponse, T <: GeneratedMessage](response: R): T = {
response match {
case p:PlayerRegisterResponse => return someFunctionThatMapsToGeneratedMessageDerivedClass(p)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment