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
88import dotty .tools .dotc .ast .Trees ._
99import dotty .tools .dotc .core .Contexts ._
1010import dotty .tools .dotc .core .Decorators ._
11- import dotty .tools .dotc .core .Flags ._
11+ import dotty .tools .dotc .core .Flags .{ Method => MethodFlag , _ }
1212import dotty .tools .dotc .core .NameKinds .FlatName
1313import dotty .tools .dotc .core .Names .{Name , TermName }
1414import dotty .tools .dotc .core .StdNames ._
@@ -312,7 +312,13 @@ object Splicer {
312312
313313 protected final def interpretTree (tree : Tree )(implicit env : Env ): Result = tree match {
314314 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)
316322
317323 case TypeApply (fn, quoted :: Nil ) if fn.symbol == defn.QuotedType_apply =>
318324 interpretTypeQuote(quoted)
You can’t perform that action at this time.
0 commit comments