summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/mutable/SetProxy.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/collection/mutable/SetProxy.scala')
-rw-r--r--src/library/scala/collection/mutable/SetProxy.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/collection/mutable/SetProxy.scala b/src/library/scala/collection/mutable/SetProxy.scala
index e13f18691b..1c86472259 100644
--- a/src/library/scala/collection/mutable/SetProxy.scala
+++ b/src/library/scala/collection/mutable/SetProxy.scala
@@ -27,15 +27,15 @@ trait SetProxy[A] extends Set[A] with collection.SetProxy[A] {
override def update(elem: A, included: Boolean): Unit = self(elem) = included
- def +=(elem: A): Unit = self += elem
+ def +=(elem: A): this.type = { self += elem; this }
- override def ++=(that: Iterable[A]): Unit = self ++= that
+ override def ++=(that: Iterable[A]): this.type = { self ++= that; this }
- override def ++=(it: Iterator[A]): Unit = self ++= it
+ override def ++=(it: Iterator[A]): this.type = { self ++= it; this }
override def incl(elems: A*): Unit = self ++= elems
- def -=(elem: A): Unit = self -= elem
+ def -=(elem: A): this.type = { self -= elem; this }
override def --=(that: Iterable[A]): Unit = self --= that