summaryrefslogtreecommitdiff
path: root/test/files/run/t1987b/cce_test.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-08-22 21:55:26 +0200
committerPaul Phillips <paulp@improving.org>2012-08-22 22:18:53 +0200
commitfcf2b29010fd20acb3c27204e4dd9e795eabe00c (patch)
treefd09231b79253d744b2569fe7f2dec44d2a6cf5c /test/files/run/t1987b/cce_test.scala
parent6e344bc3d323a42589f8bd6f74af623a87b573db (diff)
downloadscala-fcf2b29010fd20acb3c27204e4dd9e795eabe00c.tar.gz
scala-fcf2b29010fd20acb3c27204e4dd9e795eabe00c.tar.bz2
scala-fcf2b29010fd20acb3c27204e4dd9e795eabe00c.zip
Improved fix for SI-1987, overloading in package objects.
When reformulating an errant package object overload, don't forget to fully qualify it lest you trade one error for another.
Diffstat (limited to 'test/files/run/t1987b/cce_test.scala')
-rw-r--r--test/files/run/t1987b/cce_test.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t1987b/cce_test.scala b/test/files/run/t1987b/cce_test.scala
new file mode 100644
index 0000000000..4f9acf0264
--- /dev/null
+++ b/test/files/run/t1987b/cce_test.scala
@@ -0,0 +1,15 @@
+package scales.xml
+//import scales.xml._ // using another pacakge and importing doesn't CCE
+
+object CCE_Test {
+ def main(args: Array[String]): Unit = {
+ // without the import it doesn't trigger the CCE
+ import scaley.funny._
+
+ val pull = null.asInstanceOf[Iterator[PullType]]
+ val LogEntries = null.asInstanceOf[List[QName]]
+ // fully qualify with scales.xml. and it won't trigger it
+ iterate(LogEntries,
+ pull)
+ }
+}