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 7713860 commit 7d15704Copy full SHA for 7d15704
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
@@ -514,12 +514,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
514
515
/** Decompose a type into subspaces -- assume the type can be decomposed */
516
def decompose(tp: Type): List[Space] = {
517
- val children = tp.classSymbol.annotations.filter(_.symbol == ctx.definitions.ChildAnnot).map { annot =>
518
- // refer to definition of Annotation.makeChild
519
- annot.tree match {
520
- case Apply(TypeApply(_, List(tpTree)), _) => tpTree.symbol
521
- }
522
+ val children = tp.classSymbol.children
523
524
debug.println(s"candidates for ${tp.show} : [${children.map(_.show).mkString(", ")}]")
525
0 commit comments