Skip to content

Commit 127aa30

Browse files
committed
Do not add DefDef into the map
1 parent cf079aa commit 127aa30

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/transform/Splicer.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ object Splicer {
4545
* - Other parameters are lifted to quoted.Types.TreeExpr (may reference a binding)
4646
*/
4747
private def getLiftedArgs(call: Tree, bindings: List[Tree])(implicit ctx: Context): List[Any] = {
48-
val bindMap = bindings.map {
48+
val bindMap = bindings.collect {
4949
case vdef: ValDef => (vdef.rhs, ref(vdef.symbol))
50-
case ddef: DefDef => (ddef.rhs, ddef.rhs)
5150
}.toMap
5251
def allArgs(call: Tree, acc: List[List[Tree]]): List[List[Tree]] = call match {
5352
case call: Apply => allArgs(call.fun, call.args :: acc)

0 commit comments

Comments
 (0)