summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-05-04 14:30:34 +0000
committerLex Spoon <lex@lexspoon.org>2006-05-04 14:30:34 +0000
commit5a94352a620b652bafe8386adf2637f4bec86e25 (patch)
treea5d7cd6f303f16761ebd0cc1666a0183e361aa22 /src
parentf8de30e27e00c3632c803490be9847085d13a181 (diff)
downloadscala-5a94352a620b652bafe8386adf2637f4bec86e25.tar.gz
scala-5a94352a620b652bafe8386adf2637f4bec86e25.tar.bz2
scala-5a94352a620b652bafe8386adf2637f4bec86e25.zip
added a comment about variance in the type para...
added a comment about variance in the type parameter
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/collection/immutable/Set.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library/scala/collection/immutable/Set.scala b/src/library/scala/collection/immutable/Set.scala
index 7c5138d700..a90c20fb69 100644
--- a/src/library/scala/collection/immutable/Set.scala
+++ b/src/library/scala/collection/immutable/Set.scala
@@ -17,6 +17,10 @@ package scala.collection.immutable;
* <code>scala.collection.Set</code> as well as for <code>+</code> and
* <code>-</code>.
*
+ * Note that abstract immutable.Set's are not covariant in their type
+ * parameter. This is because some subclasses cannot support the
+ * <code>+</code> method for arbitrary types.
+ *
* @author Matthias Zenger
* @version 1.1, 03/05/2004
*/