You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like this might actually be a Kotlin Compiler bug. Looking at the bytecode, the default no-arg constructor actually isn't being generated in this case. I opened a ticket here: https://youtrack.jetbrains.com/issue/KT-64132
A workaround seems to be to simply wrap your value class type in another data class and use that in your State object
A State class that contains a value class will fail with
InstantiationException: java.lang.Class<...> has no zero argument constructor
error.Eg:
The text was updated successfully, but these errors were encountered: