diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2013-07-05 14:37:48 +0200 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2013-08-15 13:15:35 +0200 |
commit | 7943084a2d06e21f112b4efd0ab70ec6e38ce510 (patch) | |
tree | 5ad72c62f9ab92b099c04cc3ac69ed684b15528e /src/library | |
parent | f17fb5eaa545490c761acd4f6979a619f919ac86 (diff) | |
download | scala-7943084a2d06e21f112b4efd0ab70ec6e38ce510.tar.gz scala-7943084a2d06e21f112b4efd0ab70ec6e38ce510.tar.bz2 scala-7943084a2d06e21f112b4efd0ab70ec6e38ce510.zip |
SI-7624 Fix -feature warnings and build with -feature
I added a language.existential import to LazyCombiner.scala which
should not be necessary, but causes a spurious warning otherwise:
scala/src/library/scala/collection/parallel/mutable/LazyCombiner.scala:33:
warning: the existential type
scala.collection.parallel.mutable.LazyCombiner[_$1,_$2,_$3] forSome {
type _$1; type _$2; type _$3 <: scala.collection.generic.Growable[_$1] with scala.collection.generic.Sizing },
which cannot be expressed by wildcards, should be enabled by making the implicit value scala.language.existentials visible.
if (other.isInstanceOf[LazyCombiner[_, _, _]]) {
^
I created ticket SI-7750 to track this issue.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/parallel/mutable/LazyCombiner.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library/scala/collection/parallel/mutable/LazyCombiner.scala b/src/library/scala/collection/parallel/mutable/LazyCombiner.scala index cc25b5b4b2..5ab2bb81c6 100644 --- a/src/library/scala/collection/parallel/mutable/LazyCombiner.scala +++ b/src/library/scala/collection/parallel/mutable/LazyCombiner.scala @@ -30,6 +30,7 @@ trait LazyCombiner[Elem, +To, Buff <: Growable[Elem] with Sizing] extends Combin def result: To = allocateAndCopy def clear() = { chain.clear() } def combine[N <: Elem, NewTo >: To](other: Combiner[N, NewTo]): Combiner[N, NewTo] = if (this ne other) { + import language.existentials // FIXME: See SI-7750 if (other.isInstanceOf[LazyCombiner[_, _, _]]) { val that = other.asInstanceOf[LazyCombiner[Elem, To, Buff]] newLazyCombiner(chain ++= that.chain) |