are enums still broken? marking one as `@Serializa...
# serialization
n
are enums still broken? marking one as
@Serializable
seems to break everything
s
They're serializable out of the box, but without customization for now
n
the error it throws is:
Caused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: @Serializable annotation on class Rating would be ignored because it is impossible to serialize it automatically. Provide serializer manually via e.g. companion object
i am using
1.3.31
if it matters
the enum class looks like so:
Copy code
@Serializable
enum class Rating { s, n, q, e }
those ltter stand for longer words, i hoped i could use
@SerialName
for mapping them
oh i think i get it now.. i can use enums but i cannot annotate them as serializable