Created
January 16, 2015 18:14
-
-
Save tindzk/6a99a0e5af9f73ac2ec6 to your computer and use it in GitHub Desktop.
uPickle: Declarations in method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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