Permalink
Browse files

Make Set type-invariant, as it should be

  • Loading branch information...
1 parent 181a608 commit 4c86fe2faa57d08f4f910b2e344b2f62cd6684c6 @jordanlewis committed Apr 30, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/scala/Set.scala
@@ -1,6 +1,6 @@
package org.jordanlewis.pfds
-trait Set[+T] {
- def insert[U >: T](x: U): Set[U]
- def member[U >: T](x: U): Boolean
+trait Set[T] {
+ def insert(x: T): Set[T]
+ def member(x: T): Boolean
}

0 comments on commit 4c86fe2

Please sign in to comment.