summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSean McDirmid <sean.mcdirmid@gmail.com>2005-11-17 18:21:33 +0000
committerSean McDirmid <sean.mcdirmid@gmail.com>2005-11-17 18:21:33 +0000
commitcbd29e36277770bd6cc50c1d3aca478118e6361c (patch)
tree2b70b6d4539c06027ffe374458e70d84f00c8598 /test
parentda547cc724a579935f6c1ac225fa79dd194f0c00 (diff)
downloadscala-cbd29e36277770bd6cc50c1d3aca478118e6361c.tar.gz
scala-cbd29e36277770bd6cc50c1d3aca478118e6361c.tar.bz2
scala-cbd29e36277770bd6cc50c1d3aca478118e6361c.zip
Test case for abstract override bug in NSC.
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/collections.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/collections.scala b/test/files/pos/collections.scala
new file mode 100644
index 0000000000..9206a6e500
--- /dev/null
+++ b/test/files/pos/collections.scala
@@ -0,0 +1,15 @@
+package mixins;
+
+import scala.collection.mutable._;
+
+class Collections extends HashSet[Int] with ObservableSet[Int,Collections] {
+ override def +=(elem: Int): Unit = super.+=(elem);
+ override def -=(elem: Int): Unit = super.-=(elem);
+ override def clear: Unit = super.clear;
+
+}
+
+object collections extends Collections;
+
+class Collections1 extends HashSet[Int] with ObservableSet[Int,Collections1];
+object collections1 extends Collections1;