Skip to content

Instantly share code, notes, and snippets.

@tindzk
Created January 16, 2015 18:06
Show Gist options
  • Save tindzk/5e15c9a809d204a7856b to your computer and use it in GitHub Desktop.
Save tindzk/5e15c9a809d204a7856b to your computer and use it in GitHub Desktop.
uPickle: FatalError
def main(args: Array[String]) {
sealed trait Type
object Type {
case object A extends Type
case object B extends Type
}
upickle.read[Type]("")
}
// scala.reflect.internal.FatalError: Unknown type: (Type$module$1: runtime.VolatileObjectRef)test.Main$Type$3.type, (Type$module$1: runtime.VolatileObjectRef)test.Main$Type$3.type [class scala.reflect.internal.Types$MethodType, class scala.reflect.internal.Types$MethodType] TypeRef? false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment