summaryrefslogtreecommitdiff
path: root/test/files/run/t1987b/PullIteratees.scala
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-08-23 00:49:57 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-08-23 00:49:57 -0700
commit1a1678dac0d4ff7d08efffbe2c80f324c173a69e (patch)
treee5aa80eadb0c12b94148f5738ba5d07b54602750 /test/files/run/t1987b/PullIteratees.scala
parentcc85db9d403c0210472319c7da5839f2531c6948 (diff)
parentfcf2b29010fd20acb3c27204e4dd9e795eabe00c (diff)
downloadscala-1a1678dac0d4ff7d08efffbe2c80f324c173a69e.tar.gz
scala-1a1678dac0d4ff7d08efffbe2c80f324c173a69e.tar.bz2
scala-1a1678dac0d4ff7d08efffbe2c80f324c173a69e.zip
Merge pull request #1182 from paulp/issue/1987
Improved fix for SI-1987, overloading in package objects.
Diffstat (limited to 'test/files/run/t1987b/PullIteratees.scala')
-rw-r--r--test/files/run/t1987b/PullIteratees.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/t1987b/PullIteratees.scala b/test/files/run/t1987b/PullIteratees.scala
new file mode 100644
index 0000000000..a5a3e65d8f
--- /dev/null
+++ b/test/files/run/t1987b/PullIteratees.scala
@@ -0,0 +1,17 @@
+package scales.xml
+
+trait PullType
+class QName
+trait RetUrn[T]
+
+/**
+ * Iteratees related to pull parsing
+ */
+trait PullIteratees {
+ /**
+ * Without the overload it doesn't trigger the CCE, even though its
+ * not used
+ */
+ def iterate(path: List[QName], xml: String): RetUrn[String] = null
+ def iterate(path: List[QName], xml: Iterator[PullType]): RetUrn[String] = null
+}