File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import dotty.tools.dotc.ast.tpd
8
8
import dotty .tools .dotc .ast .Trees ._
9
9
import dotty .tools .dotc .core .Contexts ._
10
10
import dotty .tools .dotc .core .Decorators ._
11
- import dotty .tools .dotc .core .Flags ._
11
+ import dotty .tools .dotc .core .Flags .{ Method => MethodFlag , _ }
12
12
import dotty .tools .dotc .core .NameKinds .FlatName
13
13
import dotty .tools .dotc .core .Names .{Name , TermName }
14
14
import dotty .tools .dotc .core .StdNames ._
@@ -312,7 +312,13 @@ object Splicer {
312
312
313
313
protected final def interpretTree (tree : Tree )(implicit env : Env ): Result = tree match {
314
314
case Apply (TypeApply (fn, _), quoted :: Nil ) if fn.symbol == defn.QuotedExpr_apply =>
315
- interpretQuote(quoted)
315
+ val quoted1 = quoted match {
316
+ case quoted : Ident if quoted.symbol.is(InlineProxy ) && quoted.symbol.is(MethodFlag ) => // inline proxy for by-name parameter
317
+ // TODO stop generating inline proxies for by-name parameter and remove this special case
318
+ quoted.symbol.defTree.asInstanceOf [DefDef ].rhs
319
+ case _ => quoted
320
+ }
321
+ interpretQuote(quoted1)
316
322
317
323
case TypeApply (fn, quoted :: Nil ) if fn.symbol == defn.QuotedType_apply =>
318
324
interpretTypeQuote(quoted)
You can’t perform that action at this time.
0 commit comments