Skip to content

Commit 0382437

Browse files
committed
Add missing condition
1 parent 42b5941 commit 0382437

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ object Semantic {
605605

606606
def isSyntheticApply(meth: Symbol) =
607607
meth.is(Flags.Synthetic)
608+
&& meth.name == nme.apply
608609
&& meth.owner.is(Flags.Module)
609610
&& meth.owner.companionClass.is(Flags.Case)
610611

0 commit comments

Comments
 (0)