summaryrefslogtreecommitdiff
path: root/test/files/neg/t9684.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t9684.scala')
-rw-r--r--test/files/neg/t9684.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/t9684.scala b/test/files/neg/t9684.scala
new file mode 100644
index 0000000000..f7ece269e6
--- /dev/null
+++ b/test/files/neg/t9684.scala
@@ -0,0 +1,9 @@
+
+import scala.collection.JavaConversions._
+import scala.collection.mutable.Buffer
+
+trait Test {
+ null.asInstanceOf[java.util.List[Int]] : Buffer[Int]
+
+ null.asInstanceOf[Iterable[Int]] : java.util.Collection[Int]
+}