diff options
Diffstat (limited to 'src/library/scala/collection/generic/MutableSetTemplate.scala')
-rw-r--r-- | src/library/scala/collection/generic/MutableSetTemplate.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/collection/generic/MutableSetTemplate.scala b/src/library/scala/collection/generic/MutableSetTemplate.scala index 1f29838174..d79c737e66 100644 --- a/src/library/scala/collection/generic/MutableSetTemplate.scala +++ b/src/library/scala/collection/generic/MutableSetTemplate.scala @@ -41,7 +41,7 @@ trait MutableSetTemplate[A, +This <: MutableSetTemplate[A, This] with mutable.Se with Builder[A, This] with Growable[A] with Shrinkable[A] - with Cloneable[This] + with Cloneable[mutable.Set[A]] { self => /** A common implementation of <code>newBuilder</code> for all mutable sets @@ -103,7 +103,7 @@ trait MutableSetTemplate[A, +This <: MutableSetTemplate[A, This] with mutable.Se */ def clear() { foreach(-=) } - override def clone(): This = empty ++= thisCollection + override def clone(): mutable.Set[A] = empty ++= thisCollection def result: This = thisCollection |