Skip to content

Spurious scala.language.existentials warning triggered by isInstanceOf in LazyCombiner #7750

@scabug

Description

@scabug

The line

if (other.isInstanceOf[LazyCombiner[_, _, _]]) {

triggers this warning:

    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 $
    if (other.isInstanceOf[LazyCombiner[_, _, _]]) {
                       ^

This diagnostic is false and should be fixed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions