Why the following -unchecked not displayed on the next -unchecked :
object Order { sealed trait EntryOption case object EmptyEntry extends EntryOption trait Entry extends EntryOption def isEmpty(a: EntryOption): Boolean = a match { case EmptyEntry => true
It seems that I had exactly the same problem before in the days of Scala 2.8.0 without a sufficient answer.
EDIT
@Jed It doesn't matter to me that a warning is issued only for a non-abstract Entry class. Consider the following situation:
trait Order { sealed trait EntryOption case object EmptyEntry extends EntryOption abstract sealed class Entry extends EntryOption def isEmpty(a: EntryOption): Boolean = a match { case EmptyEntry => true
The only way to make a warning is to have a specific Entry class in Order !
source share