scalac only checks sealed classes. We should consider if we indeed want to change this.
https://github.com/lampepfl/dotty/pull/1261/files#diff-3fbc86b62f6455f297c02b6711bc66b1R470
In case we indeed decide to change it, I propose to maintain scalac compatible behavior in -language:Scala2 mode.