We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb5ed85 commit 1ee7934Copy full SHA for 1ee7934
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -2012,7 +2012,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
2012
else -1 // no eta expansion in this case
2013
}
2014
2015
- if (arity >= 0 && !tree.symbol.isConstructor)
+ if (arity >= 0 && !tree.symbol.isConstructor && !ctx.mode.is(Mode.Pattern))
2016
typed(etaExpand(tree, wtp, arity), pt)
2017
else if (wtp.paramInfos.isEmpty)
2018
adaptInterpolated(tpd.Apply(tree, Nil), pt, EmptyTree)
0 commit comments