arekolek
07/13/2018, 10:54 AMin that way we get some of the goodness of sealed-classes with regular interfacesYou 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).