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 e00caba commit 4224938Copy full SHA for 4224938
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
@@ -717,7 +717,6 @@ object SpaceEngine {
717
718
extension (tp: Type)
719
def isDecomposableToChildren(using Context): Boolean =
720
- val sym = tp.typeSymbol // e.g. Foo[List[Int]] = type Foo (i19275)
721
val cls = tp.classSymbol // e.g. Foo[List[Int]] = class List
722
tp.hasSimpleKind // can't decompose higher-kinded types
723
&& cls.is(Sealed)
0 commit comments