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 3dcb286 commit 7b7ab2fCopy full SHA for 7b7ab2f
src/dotty/tools/dotc/transform/TraitConstructors.scala
@@ -23,7 +23,7 @@ class TraitConstructors extends MiniPhaseTransform with SymTransformer {
23
24
def transformSym(sym: SymDenotation)(implicit ctx: Context): SymDenotation = {
25
if (sym.isPrimaryConstructor && (sym.owner is Flags.Trait))
26
- sym.copySymDenotation(name = nme.INITIALIZER_PREFIX ++ sym.owner.fullName)
+ sym.copySymDenotation(name = nme.INITIALIZER_PREFIX ++ sym.owner.fullNameSeparated("$"))
27
else sym
28
}
29
0 commit comments