diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-05-04 14:30:34 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-05-04 14:30:34 +0000 |
commit | 5a94352a620b652bafe8386adf2637f4bec86e25 (patch) | |
tree | a5d7cd6f303f16761ebd0cc1666a0183e361aa22 /src/library | |
parent | f8de30e27e00c3632c803490be9847085d13a181 (diff) | |
download | scala-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/library')
-rw-r--r-- | src/library/scala/collection/immutable/Set.scala | 4 |
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 */ |