summaryrefslogtreecommitdiff
path: root/test/files/pos/array-interfaces.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-03-19 17:32:37 +0000
committerPaul Phillips <paulp@improving.org>2011-03-19 17:32:37 +0000
commit4380911a32eb7fa99faf5fea4ba5f9ad6a3a5258 (patch)
tree6f85fb000c50936d6d0ea5c19b9eede435b4eaec /test/files/pos/array-interfaces.scala
parent01203c2844e196696b8fe35acfae0ee6ede90ffa (diff)
downloadscala-4380911a32eb7fa99faf5fea4ba5f9ad6a3a5258.tar.gz
scala-4380911a32eb7fa99faf5fea4ba5f9ad6a3a5258.tar.bz2
scala-4380911a32eb7fa99faf5fea4ba5f9ad6a3a5258.zip
Removed long deprecated and obscure CloneableCo...
Removed long deprecated and obscure CloneableCollection. Discovered we have a scala.collection.mutable.Cloneable which does not extend java.lang.Cloneable, which is why Array is not considered cloneable. That seems wrong, but to be conservative I gave Array the Cloneable interface without altering the scala trait. Also, if @serializable is deprecated in favor of Serializable, should not @cloneable be deprecated analogously? Closes #4307, and a commit-question review by rytz.
Diffstat (limited to 'test/files/pos/array-interfaces.scala')
-rw-r--r--test/files/pos/array-interfaces.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/array-interfaces.scala b/test/files/pos/array-interfaces.scala
new file mode 100644
index 0000000000..70cafd2bb1
--- /dev/null
+++ b/test/files/pos/array-interfaces.scala
@@ -0,0 +1,9 @@
+object s {
+ def f(x: Cloneable) = ()
+ def g(x: java.io.Serializable) = ()
+
+ def main(args: Array[String]): Unit = {
+ f(args)
+ g(args)
+ }
+} \ No newline at end of file