Skip to content

Commit 4bac55e

Browse files
committed
Use $init$ as the name of trait constructors
This brings it in line with Scala2 conventions.
1 parent 8898ee6 commit 4bac55e

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
@@ -24,7 +24,7 @@ class TraitConstructors extends MiniPhaseTransform with SymTransformer {
2424
def transformSym(sym: SymDenotation)(implicit ctx: Context): SymDenotation = {
2525
if (sym.isPrimaryConstructor && (sym.owner is Flags.Trait))
2626
// TODO: Someone needs to carefully check if name clashes are possible with this mangling scheme
27-
sym.copySymDenotation(name = nme.INITIALIZER_PREFIX ++ sym.owner.fullNameSeparated("$"))
27+
sym.copySymDenotation(name = nme.IMPLCLASS_CONSTRUCTOR)
2828
else sym
2929
}
3030

0 commit comments

Comments
 (0)