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/run/t4537 | |
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/run/t4537')
-rw-r--r-- | test/files/run/t4537/a.scala | 5 | ||||
-rw-r--r-- | test/files/run/t4537/b.scala | 5 | ||||
-rw-r--r-- | test/files/run/t4537/c.scala | 8 | ||||
-rw-r--r-- | test/files/run/t4537/d.scala | 6 |
4 files changed, 24 insertions, 0 deletions
diff --git a/test/files/run/t4537/a.scala b/test/files/run/t4537/a.scala new file mode 100644 index 0000000000..125e223e13 --- /dev/null +++ b/test/files/run/t4537/a.scala @@ -0,0 +1,5 @@ +package a + +private[a] object Settings { + val X = "a.Settings" +} diff --git a/test/files/run/t4537/b.scala b/test/files/run/t4537/b.scala new file mode 100644 index 0000000000..c709d49b04 --- /dev/null +++ b/test/files/run/t4537/b.scala @@ -0,0 +1,5 @@ +package b + +object Settings { + val Y = "b.Settings" +} diff --git a/test/files/run/t4537/c.scala b/test/files/run/t4537/c.scala new file mode 100644 index 0000000000..ee05d4bbfb --- /dev/null +++ b/test/files/run/t4537/c.scala @@ -0,0 +1,8 @@ +package b +package c + +import a._ + +object Unambiguous { + println(Settings.Y) +} diff --git a/test/files/run/t4537/d.scala b/test/files/run/t4537/d.scala new file mode 100644 index 0000000000..dd1d2045ed --- /dev/null +++ b/test/files/run/t4537/d.scala @@ -0,0 +1,6 @@ +import a._ +import b._ + +object Test extends App { + println(Settings.Y) +} |