1 2 3 4 5 6 7
bug95.scala:1: illegal inheritance from sealed class class C extends AnyVal; ^ bug95.scala:2: illegal inheritance from sealed class class T extends Unit; ^ two errors found