Skip to content

Instantly share code, notes, and snippets.

@tstone
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstone/81804aa38e8441cb2a4a to your computer and use it in GitHub Desktop.
Save tstone/81804aa38e8441cb2a4a to your computer and use it in GitHub Desktop.
trait Person
class Manager extends Person
class Engineer extends Person
val people = Seq(new Engineer, new Manager)
people.map(_.toJson)
// PROBLEM: Implicit lookup is for a Writes[Person], not a Writes[Engineer] and Writes[Manager]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment