We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using Scala 2.12.11 (with Ywarn-unused... and -Xfatal-warnings flags),
Ywarn-unused...
-Xfatal-warnings
def getA(): Future[String] = ??? def getB(a: String): Future[Int] = ??? for { a <- getA() if a == "foo" b <- getB(a) if b == 0 } yield a
Error:(28, 7) parameter value b in value $anonfun is never used b <- getB(a) if b == 0
Hi
I believe the above piece of code which triggers the "never used" warning should not. Am I right or am I missing something?
I didn't try on 2.13 yet.
The text was updated successfully, but these errors were encountered:
duplicate of #11175 which we consolidated under #10287
Sorry, something went wrong.
No branches or pull requests
reproduction steps
Using Scala 2.12.11 (with
Ywarn-unused...
and-Xfatal-warnings
flags),problem
Hi
I believe the above piece of code which triggers the "never used" warning should not.
Am I right or am I missing something?
I didn't try on 2.13 yet.
The text was updated successfully, but these errors were encountered: