File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,9 @@ 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 =>
133
+ val SAMType (mt) = id.tpe.widen
134
+ splitClosure(tpd.Lambda (mt, args => id.select(nme.apply).appliedToArgs(args))(ctx.withOwner(original)))
132
135
case EmptyTree =>
133
136
(_ => _ => EmptyTree , EmptyTree )
134
137
}
Original file line number Diff line number Diff line change
1
+ inline def foo : String = bar given (4 )
2
+ private def bar : given Int => String = " baz"
You can’t perform that action at this time.
0 commit comments