Skip to content

Commit e3ddbab

Browse files
committed
Fix Term not matching Inlined and NamedArg trees
1 parent 9b9ca24 commit e3ddbab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,10 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
272272
override def unapply(x: Any): Option[Term] = x match
273273
case _ if Unapply_TypeTest.unapply(x).isDefined => None
274274
case _: tpd.PatternTree @unchecked => None
275-
case x: tpd.SeqLiteral @unchecked => Some(x)
276275
case x: tpd.Tree @unchecked if x.isTerm => Some(x)
276+
case x: tpd.SeqLiteral @unchecked => Some(x)
277+
case x: tpd.Inlined @unchecked => Some(x)
278+
case x: tpd.NamedArg @unchecked => Some(x)
277279
case _ => None
278280
}
279281

0 commit comments

Comments
 (0)