- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
with SynchronizedSet
Wed, 2009-07-22, 08:15
What have I missed?
//-------------------
# scala
Welcome to Scala version 2.8.0.r18375-b20090722041554 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_14).
Type in expressions to have them evaluated.
Type :help for more information.
scala> val m = new scala.collection.mutable.HashSet[String] with scala.collection.mutable.SynchronizedSet[String]
:4: error: overriding method clone in class HashSet of type ()scala.collection.mutable.HashSet[String];
method clone in trait SynchronizedSet of type ()scala.collection.mutable.Set[String] has incompatible type
val m = new scala.collection.mutable.HashSet[String] with scala.collection.mutable.SynchronizedSet[String]
^
scala>
Wed, 2009-07-22, 19:27
#2
Re: with SynchronizedSet
On Wednesday 22 July 2009 21:18:56 you wrote:
> Looks like a bug.
On Wed, Jul 22, 2009 at 2:13 AM, Andrew Gaydenko <a@gaydenko.com> wrote: