We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 47881da + 6d00305 commit 8d8b5b9Copy full SHA for 8d8b5b9
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -2473,7 +2473,7 @@ object Types extends TypeUtils {
2473
else lastd match {
2474
case lastd: SymDenotation =>
2475
if stillValid(lastd) && checkedPeriod.code != NowhereCode then finish(lastd.current)
2476
- else finish(memberDenot(lastd.initial.name, allowPrivate = false))
+ else finish(memberDenot(lastd.initial.name, allowPrivate = lastd.is(Private)))
2477
case _ =>
2478
fromDesignator
2479
}
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