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/import-precedence.check | |
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/import-precedence.check')
-rw-r--r-- | test/files/neg/import-precedence.check | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/neg/import-precedence.check b/test/files/neg/import-precedence.check new file mode 100644 index 0000000000..5f99611052 --- /dev/null +++ b/test/files/neg/import-precedence.check @@ -0,0 +1,19 @@ +import-precedence.scala:18: error: reference to X is ambiguous; +it is imported twice in the same scope by +import uniq1.uniq2._ +and import uniq1.X + object Y { def f = X } + ^ +import-precedence.scala:61: error: reference to X is ambiguous; +it is imported twice in the same scope by +import uniq1.uniq2._ +and import uniq1._ + object Y { def f = X } + ^ +import-precedence.scala:67: error: reference to X is ambiguous; +it is imported twice in the same scope by +import uniq1.uniq2.X +and import uniq1.X + object Y { def f = X } + ^ +three errors found |