diff options
Diffstat (limited to 'src/library/scalax/collection/immutable/Set.scala')
-rwxr-xr-x | src/library/scalax/collection/immutable/Set.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library/scalax/collection/immutable/Set.scala b/src/library/scalax/collection/immutable/Set.scala index 5b39aaa3a4..9462cd3c5f 100755 --- a/src/library/scalax/collection/immutable/Set.scala +++ b/src/library/scalax/collection/immutable/Set.scala @@ -11,17 +11,19 @@ package scalax.collection.immutable -import collection.generic._ +import generic._ object Set extends generic.SetFactory[Set] { private val hashSeed = "Set".hashCode - def empty[A]: Set[A] = null // !!! + def empty[A]: Set[A] = new EmptySet[A] } trait Set[A] extends OrderedIterable[A] with collection.Set[A] with SetTemplate[Set, A] { + override def newBuilder[B]: Builder[Set, B] = Set.newBuilder[B] + /** Compares this set with another object and returns true, iff the * other object is also a set which contains the same elements as * this set. |