summaryrefslogtreecommitdiff
path: root/test/files/neg/t3160ambiguous.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-10-23 14:30:21 -0700
committerPaul Phillips <paulp@improving.org>2012-10-23 15:34:39 -0700
commite326d864d0a7fc9471695d89635c101a84592c58 (patch)
treec4a5c27b60ef08bf499444893c73d03035e7ba38 /test/files/neg/t3160ambiguous.check
parent9cbbb1ccb50fc0a6c423321494ea360f25736e28 (diff)
downloadscala-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.check')
-rw-r--r--test/files/neg/t3160ambiguous.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t3160ambiguous.check b/test/files/neg/t3160ambiguous.check
new file mode 100644
index 0000000000..e80d9a5461
--- /dev/null
+++ b/test/files/neg/t3160ambiguous.check
@@ -0,0 +1,7 @@
+t3160ambiguous.scala:8: error: reference to Node is ambiguous;
+it is imported twice in the same scope by
+import scala.xml._
+and import Bippy._
+ def f(x: Node): String = ??? // ambiguous, because Bippy.Node is accessible
+ ^
+one error found