aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t1987b/cce_test.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t1987b/cce_test.scala')
-rw-r--r--tests/run/t1987b/cce_test.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/run/t1987b/cce_test.scala b/tests/run/t1987b/cce_test.scala
new file mode 100644
index 000000000..4f9acf026
--- /dev/null
+++ b/tests/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)
+ }
+}