> in that way we get some of the goodness of se...
# language-proposals
a
in that way we get some of the goodness of sealed-classes with regular interfaces
You don't use sealed classes that way. If
LoggingEvent
was sealed, you'd still get the same warning (but wouldn't get the error, because enumerating all subclasses would exhaust all possibilities).