aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/collections.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/collections.scala')
-rw-r--r--tests/untried/pos/collections.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/pos/collections.scala b/tests/untried/pos/collections.scala
new file mode 100644
index 000000000..23b23d016
--- /dev/null
+++ b/tests/untried/pos/collections.scala
@@ -0,0 +1,15 @@
+package mixins;
+
+import scala.collection.mutable._;
+
+class Collections extends HashSet[Int] with ObservableSet[Int] {
+ override def +=(elem: Int): this.type = super.+=(elem);
+ override def -=(elem: Int): this.type = 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;