File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -241,9 +241,8 @@ object EtaExpansion extends LiftImpure {
241241 var ids : List [Tree ] = mt.paramNames map (name => Ident (name).withSpan(tree.span.startPos))
242242 if (mt.paramInfos.nonEmpty && mt.paramInfos.last.isRepeatedParam)
243243 ids = ids.init :+ repeated(ids.last)
244- val app = Apply (lifted, ids)
245- if (mt.isContextualMethod) app.setApplyKind(ApplyKind .Using )
246- val body = if (isLastApplication) app else PostfixOp (app, Ident (nme.WILDCARD ))
244+ val body = Apply (lifted, ids)
245+ if (mt.isContextualMethod) body.setApplyKind(ApplyKind .Using )
247246 val fn =
248247 if (mt.isContextualMethod) new untpd.FunctionWithMods (params, body, Modifiers (Given ))
249248 else if (mt.isImplicitMethod) new untpd.FunctionWithMods (params, body, Modifiers (Implicit ))
Original file line number Diff line number Diff line change 1+ object Test :
2+
3+ def cat1 (s1 : String )(s2 : String ) = s1 + s2
4+ val fcat1 = cat1
You can’t perform that action at this time.
0 commit comments