Skip to content

Commit 7b7ab2f

Browse files
committed
Fix scala#577
1 parent 3dcb286 commit 7b7ab2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/transform/TraitConstructors.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TraitConstructors extends MiniPhaseTransform with SymTransformer {
2323

2424
def transformSym(sym: SymDenotation)(implicit ctx: Context): SymDenotation = {
2525
if (sym.isPrimaryConstructor && (sym.owner is Flags.Trait))
26-
sym.copySymDenotation(name = nme.INITIALIZER_PREFIX ++ sym.owner.fullName)
26+
sym.copySymDenotation(name = nme.INITIALIZER_PREFIX ++ sym.owner.fullNameSeparated("$"))
2727
else sym
2828
}
2929

0 commit comments

Comments
 (0)