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 1fc78c2 commit 0d6191bCopy full SHA for 0d6191b
compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala
@@ -187,8 +187,11 @@ trait TypeAssigner {
187
// it could be that we found an inaccessible private member, but there is
188
// an inherited non-private member with the same name and signature.
189
val d2 = pre.nonPrivateMember(name)
190
- if (reallyExists(d2) && firstTry && !config.Config.newScheme)
191
- test(tpe.withNameSpaceOLD(noNameSpace).withDenot(d2), false)
+ if (reallyExists(d2) && firstTry)
+ test(
192
+ if (config.Config.newScheme) TermRef.withDenot(pre, d2)
193
+ else tpe.withNameSpaceOLD(noNameSpace).withDenot(d2),
194
+ false)
195
else if (pre.derivesFrom(defn.DynamicClass)) {
196
TryDynamicCallType
197
} else {
0 commit comments