scala-pickling in POJO in scala 2.11 - Is it really simple?
问题 I'm trying to use scala-pickling because at site github it seems so easy and clean. But, I'm failing in use it in this simple REPL : scala> import scala.pickling._ import scala.pickling._ scala> import scala.pickling.Defaults._ import scala.pickling.Defaults._ scala> import binary._ import binary._ scala> class Xpto { var a = 0D; var b = 0 } defined class Xpto scala> val v = new Xpto { a = 1.23; b = 5 } v: Xpto = $anon$1@636d2b03 scala> v.pickle <console>:19: error: type mismatch; found : v