File tree 2 files changed +7
-3
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -241,9 +241,8 @@ object EtaExpansion extends LiftImpure {
241
241
var ids : List [Tree ] = mt.paramNames map (name => Ident (name).withSpan(tree.span.startPos))
242
242
if (mt.paramInfos.nonEmpty && mt.paramInfos.last.isRepeatedParam)
243
243
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 )
247
246
val fn =
248
247
if (mt.isContextualMethod) new untpd.FunctionWithMods (params, body, Modifiers (Given ))
249
248
else if (mt.isImplicitMethod) new untpd.FunctionWithMods (params, body, Modifiers (Implicit ))
Original file line number Diff line number Diff line change
1
+ import language .`3.1`
2
+ object Test :
3
+
4
+ def cat1 (s1 : String )(s2 : String ) = s1 + s2
5
+ val fcat1 = cat1
You can’t perform that action at this time.
0 commit comments