com-lihaoyi / upickle

uPickle: a simple, fast, dependency-free JSON & Binary (MessagePack) serialization library for Scala
https://com-lihaoyi.github.io/upickle
MIT License
707 stars 158 forks source link

Fix Scala 3 enum parsing #476

Closed lihaoyi closed 1 year ago

lihaoyi commented 1 year ago

Previous code was hacky and fragile, this tries to make it more robust

Fixes #474

Added the original issue code as a test case, used to fail now passes