File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ class ShortcutImplicits extends MiniPhase with IdentityDenotTransformer { thisPh
129129 .appliedToArgss(vparamSymss.map(_.map(ref(_))) :+ clparamSyms.map(ref(_)))
130130 val fwdClosure = cpy.Block (tree)(cpy.DefDef (meth)(rhs = forwarder) :: Nil , cl)
131131 (remappedCore, fwdClosure)
132- case id : Ident =>
132+ case id : RefTree =>
133133 val SAMType (mt) = id.tpe.widen
134134 splitClosure(tpd.Lambda (mt, args => id.select(nme.apply).appliedToArgs(args))(ctx.withOwner(original)))
135135 case EmptyTree =>
Original file line number Diff line number Diff line change 1+ trait App (init : given Array [String ] => Unit ) {
2+ inline def main (args : Array [String ]): Unit = init given args
3+ }
You can’t perform that action at this time.
0 commit comments