Skip to content

Instantly share code, notes, and snippets.

@tindzk
Created January 16, 2015 18:14
Show Gist options
  • Save tindzk/6a99a0e5af9f73ac2ec6 to your computer and use it in GitHub Desktop.
Save tindzk/6a99a0e5af9f73ac2ec6 to your computer and use it in GitHub Desktop.
uPickle: Declarations in method
def main(args: Array[String]) {
sealed trait Base
case object Child extends Base
case class Wrapper(t: Base)
val x = upickle.read[Wrapper](null)
}
// Main.scala:23: uPickle does not know how to read [Wrapper]s; define an implicit Reader[Wrapper] to teach it how
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment