You can only hope to enforce that within your modu...
# language-proposals
r
You can only hope to enforce that within your module on the JVM (see the limitations on sealed classes from libraries), so I don't see how it would be useful.