diff options
author | Paul Phillips <paulp@improving.org> | 2012-10-23 14:30:21 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-10-23 15:34:39 -0700 |
commit | e326d864d0a7fc9471695d89635c101a84592c58 (patch) | |
tree | c4a5c27b60ef08bf499444893c73d03035e7ba38 /test/files/neg/t3160ambiguous.scala | |
parent | 9cbbb1ccb50fc0a6c423321494ea360f25736e28 (diff) | |
download | scala-e326d864d0a7fc9471695d89635c101a84592c58.tar.gz scala-e326d864d0a7fc9471695d89635c101a84592c58.tar.bz2 scala-e326d864d0a7fc9471695d89635c101a84592c58.zip |
Tests for SI-3160, SI-4537, import precedence.
Diffstat (limited to 'test/files/neg/t3160ambiguous.scala')
-rw-r--r-- | test/files/neg/t3160ambiguous.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/t3160ambiguous.scala b/test/files/neg/t3160ambiguous.scala new file mode 100644 index 0000000000..cb9759b79c --- /dev/null +++ b/test/files/neg/t3160ambiguous.scala @@ -0,0 +1,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 +} |