summaryrefslogtreecommitdiff
path: root/test/files/neg/t3160ambiguous.scala
blob: cb9759b79c33ec8c55fe93410b2deb014034c62c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
object Bippy {
  private class Node
}
class Bippy {
  import Bippy._
  import scala.xml._

  def f(x: Node): String = ???  // ambiguous, because Bippy.Node is accessible
}
class Other {
  import Bippy._
  import scala.xml._

  def f(x: Node): String = ???  // unambiguous, because Bippy.Node is inaccessible
}