blob: 57745e60d8c652282b6afd5f6f3b24de66cb2fcd (
plain) (
tree)
|
|
object Bippy {
private class List[+T]
}
class Bippy {
import Bippy._
import scala.collection.immutable._
def f(x: List[Any]): String = ??? // ambiguous, because Bippy.List is accessible
}
class Other {
import Bippy._
import scala.collection.immutable._
def f(x: List[Any]): String = ??? // unambiguous, because Bippy.List is inaccessible
}
|