Nathan Schwermann
09/21/2021, 6:38 PMJoffrey
09/21/2021, 7:10 PMsealed classes
are a Kotlin feature, so you can't at the moment. I think Kotlin might soon support the new "permitted subsclasses" JVM feature that was added in Java 15:
https://youtrack.jetbrains.com/issue/KT-41214
But at the moment I don't believe it's possible to do what you wantNathan Schwermann
09/21/2021, 7:13 PMephemient
09/21/2021, 8:16 PM@kotlin.Metadata
annotation as well as a .kotlin_module*
fileephemient
09/21/2021, 8:18 PMephemient
09/21/2021, 8:20 PMephemient
09/21/2021, 8:20 PMNathan Schwermann
09/21/2021, 8:21 PM