We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ed2031 commit 78caf29Copy full SHA for 78caf29
src/compiler/scala/tools/nsc/transform/patmat/MatchAnalysis.scala
@@ -115,7 +115,7 @@ trait TreeAndTypeAnalysis extends Debugging {
115
)
116
else None
117
// make sure it's not a primitive, else (5: Byte) match { case 5 => ... } sees no Byte
118
- case sym if sym.isSealed && !isPrimitiveValueClass(sym) =>
+ case sym if sym.isSealed =>
119
val subclasses = debug.patmatResult(s"enum $sym sealed, subclasses")(
120
// symbols which are both sealed and abstract need not be covered themselves, because
121
// all of their children must be and they cannot otherwise be created.
0 commit comments