We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdbf838 commit 10d75e9Copy full SHA for 10d75e9
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -264,15 +264,15 @@ object Applications {
264
// Constructors always have one leading non-implicit parameter list.
265
// Empty list is inserted for constructors where the first parameter list is implicit.
266
//
267
- // Therefore, we need to ignore the first empty parameter block.
+ // Therefore, we need to ignore the first empty argument list.
268
// This is needed for the test tests/neg/i12344.scala
269
270
// see NamerOps.normalizeIfConstructor
271
272
if args == Nil
273
- && fn.symbol.isConstructor
274
&& !fn.isInstanceOf[Apply]
275
&& app.tpe.isImplicitMethod
+ && fn.symbol.isConstructor
276
then meth
277
else spliceMeth(meth, fn).appliedToArgs(args)
278
case TypeApply(fn, targs) =>
0 commit comments