blob: 57745e60d8c652282b6afd5f6f3b24de66cb2fcd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
}
|