bug
bug copied to clipboard
bogus warning about usage of package-private types in method signatures
package ws
private[ws] trait Foo
private[ws] object Test {
class Bar {
def apply(f: Foo) = ???
}
}
This leads to: «method apply in class Bar references private[ws] trait Foo. Classes which cannot access Foo may be unable to override apply.» This is obviously a non-problem.
Imported From: https://issues.scala-lang.org/browse/SI-9490?orig=1 Reporter: @rkuhn Affected Versions: 2.10.5, 2.11.7
Linked ticket ("linket") shows sealed trait.
the warning is only produced under -Xlint and the problem still exists in 2.13.8.