We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4cd2c0 commit 47916adCopy full SHA for 47916ad
compiler/src/dotty/tools/dotc/transform/TreeExtractors.scala
@@ -24,6 +24,8 @@ object TreeExtractors {
24
def unapply(t: Tree)(using Context): Option[(Type, List[Tree])] = t match {
25
case Apply(Select(New(_), nme.CONSTRUCTOR), args) =>
26
Some((t.tpe, args))
27
+ case Typed(expr, _) => unapply(expr)
28
+ case Block(Nil, expr) => unapply(expr)
29
case _ =>
30
None
31
}
0 commit comments