We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d36681 commit 36dba58Copy full SHA for 36dba58
compiler/src/dotty/tools/dotc/typer/RefChecks.scala
@@ -1166,7 +1166,9 @@ object RefChecks {
1166
def targetOfHiddenExtension: Symbol =
1167
val target =
1168
val target0 = explicitInfo.firstParamTypes.head // required for extension method, the putative receiver
1169
- target0.dealiasKeepOpaques.typeSymbol.info
+ target0.dealiasKeepOpaques.typeSymbol.info match
1170
+ case tb: AliasingBounds => tb.alias
1171
+ case tp => tp
1172
val member = target.nonPrivateMember(sym.name)
1173
.filterWithPredicate: member =>
1174
member.symbol.isPublic && memberHidesMethod(member)
0 commit comments