File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -949,6 +949,7 @@ class Namer { typer: Typer =>
949
949
sym.isAccessibleFrom(path.tpe) &&
950
950
! sym.isConstructor &&
951
951
! sym.is(ModuleClass ) &&
952
+ ! sym.is(Bridge ) &&
952
953
! cls.derivesFrom(sym.owner)
953
954
954
955
/** Add a forwarder with name `alias` or its type name equivalent to `mbr`,
@@ -978,12 +979,14 @@ class Namer { typer: Typer =>
978
979
Final ,
979
980
fwdInfo(path.tpe.select(mbr.symbol), mbr.info),
980
981
coord = span)
981
- else
982
+ else {
983
+ val maybeStable = if (mbr.symbol.isStableMember) StableRealizable else EmptyFlags
982
984
ctx.newSymbol(
983
985
cls, alias,
984
- Method | Final | mbr.symbol.flags & ImplicitOrImplied ,
986
+ Method | Final | maybeStable | mbr.symbol.flags & ImplicitOrImplied ,
985
987
mbr.info.ensureMethodic,
986
988
coord = span)
989
+ }
987
990
val forwarderDef =
988
991
if (forwarder.isType) tpd.TypeDef (forwarder.asType)
989
992
else {
@@ -1168,8 +1171,6 @@ class Namer { typer: Typer =>
1168
1171
1169
1172
tempInfo.finalize(denot, parentTypes, finalSelfInfo)
1170
1173
1171
-
1172
-
1173
1174
Checking .checkWellFormed(cls)
1174
1175
if (isDerivedValueClass(cls)) cls.setFlag(Final )
1175
1176
cls.info = avoidPrivateLeaks(cls, cls.sourcePos)
You can’t perform that action at this time.
0 commit comments