Skip to content

Commit 606294c

Browse files
committed
Don't forget ExpandedName when unpickling SuperAccessors
1 parent baa2d51 commit 606294c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle
465465
val (givenFlags, annots, privateWithin) = readModifiers(end)
466466
def nameFlags(tname: TastyName): FlagSet = tname match {
467467
case TastyName.Expanded(_, original) => ExpandedName | nameFlags(tastyName(original))
468-
case TastyName.SuperAccessor(_) => Flags.SuperAccessor
468+
case TastyName.SuperAccessor(original) => Flags.SuperAccessor | nameFlags(tastyName(original))
469469
case _ => EmptyFlags
470470
}
471471
pickling.println(i"creating symbol $name at $start with flags $givenFlags")

0 commit comments

Comments
 (0)