Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
scabug opened this issue Aug 14, 2013 · 4 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Aug 14, 2013

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.

@scabug
Copy link
Author

scabug commented Aug 14, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7750?orig=1
Reporter: @soc
Affected Versions: 2.11.0-M5

@scabug
Copy link
Author

scabug commented Aug 5, 2014

@gkossakowski said:
The 2.11.2 is out so I'm rescheduling the issue for 2.11.3.

@scabug
Copy link
Author

scabug commented Nov 4, 2014

@retronym said:
Updating fix-by version to 2.11.5.

@scabug
Copy link
Author

scabug commented Nov 7, 2014

@retronym said:
scala/scala#4108

@scabug scabug closed this as completed Nov 10, 2014
@scabug scabug added this to the 2.11.5 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants