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
129
129
.appliedToArgss(vparamSymss.map(_.map(ref(_))) :+ clparamSyms.map(ref(_)))
130
130
val fwdClosure = cpy.Block (tree)(cpy.DefDef (meth)(rhs = forwarder) :: Nil , cl)
131
131
(remappedCore, fwdClosure)
132
- case id : Ident =>
132
+ case id : RefTree =>
133
133
val SAMType (mt) = id.tpe.widen
134
134
splitClosure(tpd.Lambda (mt, args => id.select(nme.apply).appliedToArgs(args))(ctx.withOwner(original)))
135
135
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