The point is to get exhaustion checks for when-exp...
# announcements
t
The point is to get exhaustion checks for when-expressions. The compiler can see the whole code, so what does it care if all the classes are in one file or spread? As long as subclassing from the sealed base class is limited to the package/module it can know about all subclasses