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.
2 parents 08efb4f + 2372eda commit 5943ed6Copy full SHA for 5943ed6
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -2412,7 +2412,7 @@ object Types extends TypeUtils {
2412
else lastd match {
2413
case lastd: SymDenotation =>
2414
if stillValid(lastd) && checkedPeriod.code != NowhereCode then finish(lastd.current)
2415
- else finish(memberDenot(lastd.initial.name, allowPrivate = false))
+ else finish(memberDenot(lastd.initial.name, allowPrivate = lastd.is(Private)))
2416
case _ =>
2417
fromDesignator
2418
}
tests/pos/i22548.scala
@@ -0,0 +1,2 @@
1
+trait Bar[T]
2
+class Foo[T <: Bar[T]] (private val buffer: Any) extends AnyVal
0 commit comments