Skip to content

Commit 4f2e6a4

Browse files
committed
Don't create constructor proxies for invisible classes
1 parent 789ceb1 commit 4f2e6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/NamerOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ object NamerOps:
6868
}
6969

7070
/** If a class has one of these flags, it does not get a constructor companion */
71-
private val NoConstructorProxyNeededFlags = Abstract | Trait | Case | Synthetic | Module
71+
private val NoConstructorProxyNeededFlags = Abstract | Trait | Case | Synthetic | Module | Invisible
7272

7373
/** The flags of a constructor companion */
7474
private val ConstructorCompanionFlags = Synthetic | ConstructorProxy

0 commit comments

Comments
 (0)