Skip to content

Commit d2d2d8f

Browse files
committed
Anonymous classes should not be called $anonfun
1 parent 7848ef6 commit d2d2d8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/tpd.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
262262
val parents1 =
263263
if (parents.head.classSymbol.is(Trait)) parents.head.parents.head :: parents
264264
else parents
265-
val cls = ctx.newNormalizedClassSymbol(owner, tpnme.ANON_FUN, Synthetic, parents1,
265+
val cls = ctx.newNormalizedClassSymbol(owner, tpnme.ANON_CLASS, Synthetic, parents1,
266266
coord = fns.map(_.pos).reduceLeft(_ union _))
267267
val constr = ctx.newConstructor(cls, Synthetic, Nil, Nil).entered
268268
def forwarder(fn: TermSymbol, name: TermName) = {

0 commit comments

Comments
 (0)