File tree 1 file changed +1
-6
lines changed
compiler/src/scala/quoted/runtime/impl
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -517,12 +517,7 @@ object QuoteMatcher {
517
517
* f has a method type `(x: Int): Int` and `f` maps to `g`, `p` should hold
518
518
* `g.apply(0)` because the type of `g` is `Int => Int` due to eta expansion.
519
519
*/
520
- case Apply (_, _) if ! tree.tpe.isInstanceOf [MethodicType ] && env.contains(tree.symbol) =>
521
- def adaptMethodCalls (t : Tree ): Tree = t match
522
- case id : Ident => env.get(id.symbol).flatMap(argsMap.get).getOrElse(t)
523
- case Apply (fun, args) => adaptMethodCalls(fun).select(nme.apply).appliedToArgs(args)
524
-
525
- adaptMethodCalls(tree)
520
+ case Apply (fun, args) if env.contains(tree.symbol) => transform(fun).select(nme.apply).appliedToArgs(args)
526
521
case tree : Ident => env.get(tree.symbol).flatMap(argsMap.get).getOrElse(tree)
527
522
case tree => super .transform(tree)
528
523
}.transform(tree)
You can’t perform that action at this time.
0 commit comments