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 28453ba commit 0ec589cCopy full SHA for 0ec589c
compiler/src/dotty/tools/dotc/typer/PrepareTransparent.scala
@@ -49,7 +49,7 @@ object PrepareTransparent {
49
def markTopLevelMatches(meth: Symbol, tree: untpd.Tree)(implicit ctx: Context): Unit = tree match {
50
case tree: untpd.Match =>
51
tree.putAttachment(TopLevelMatch, ())
52
- tree.cases.foreach(markTopLevelMatches(meth, _))
+ for (cdef <- tree.cases) markTopLevelMatches(meth, cdef.body)
53
case tree: untpd.Block =>
54
markTopLevelMatches(meth, tree.expr)
55
case _ =>
0 commit comments