Skip to content

Commit 10d75e9

Browse files
committed
Performance tweak
1 parent fdbf838 commit 10d75e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,15 @@ object Applications {
264264
// Constructors always have one leading non-implicit parameter list.
265265
// Empty list is inserted for constructors where the first parameter list is implicit.
266266
//
267-
// Therefore, we need to ignore the first empty parameter block.
267+
// Therefore, we need to ignore the first empty argument list.
268268
// This is needed for the test tests/neg/i12344.scala
269269
//
270270
// see NamerOps.normalizeIfConstructor
271271
//
272272
if args == Nil
273-
&& fn.symbol.isConstructor
274273
&& !fn.isInstanceOf[Apply]
275274
&& app.tpe.isImplicitMethod
275+
&& fn.symbol.isConstructor
276276
then meth
277277
else spliceMeth(meth, fn).appliedToArgs(args)
278278
case TypeApply(fn, targs) =>

0 commit comments

Comments
 (0)