-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Scala 3 Enums #1017
Comments
Hi there. We had a user report in the Scala plugin for IntelliJ Discord server about the compiler seemingly deadlocking trying to derive an instance of Is it officially documented somewhere that this is not supported? I'm trying to decide whether a ticket needs to be opened with the Scala 3 team. Thank you. |
I also Encountered the compiler crash.
And then the usage is as simple as:
and: no crashes. |
Let's be honest, this is a feature request, not a bug report.
Play-json currently supports Enumerations out of the box via methods like
Json.formatEnum(X)
https://github.com/playframework/play-json/blob/main/play-json/shared/src/main/scala/play/api/libs/json/Reads.scala#L437
It would be great if the current Scala 3 way of doing enums: https://docs.scala-lang.org/scala3/reference/enums/enums.html would also be supported in a similar fashion.
The text was updated successfully, but these errors were encountered: