-
Notifications
You must be signed in to change notification settings - Fork 21
Regression: false warning about non-used variable #11478
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
Comments
do you have a minimized, standalone reproducer? |
No, I don't have now the time to invest on it. |
@som-snytt does it look to you like something that might already be fixed in 2.13.x? |
Is this ScalaTest? Is it a macro expansion? I don't know anything about ScalaTest. On 2.12.5 there was scala/scala#6190 and follow-up scala/scala#6404 which had to do with for comprehensions, and similarly #11175 and #10287 I don't mind running a private build or looking at |
That's right. It is a ScalaTest. We're using ScalaTest version 3.0.4. I'll try to upgrade to latest ScalaTest 3.0.5. |
I've tested ScalaTest 3.0.5 and Scala 2.12.8 and I get the same warning. |
@DavidPerezIngeniero Thanks, I'll try to reproduce. I feel bad about changing source for a spurious warning. However, I like that ingeniero recalls the word ingenious. |
I attach the full source file. |
I made a reduction but not a reproduction. I see
Because
If you post the snippet of output with |
Thanks for your work. I'll try shortly to provide more information. |
Here is the requested data: Using Scala 2.12.8. |
Thanks. I spent some time with it, but unfortunately I see no clues. There are two previous calls to |
I'll ask the programmer who wrote the code to help me to find the clue. |
Closing since we did not minimize, but I'll make an effort to check the latest fixes to warnings against the test frameworks. |
Uh oh!
There was an error while loading. Please reload this page.
This code snippet compiles with no warning in Scala 2.12.4:
but with Scala versions 2.12.5, 2.12.6, 2.12.7, and 2.12.8 it complains in this way:
I can provide privately full sources if necessary.
We compile with SBT 1.1.2, Java 8 and Linux 64 bits.
As we compile with the flag to treat warnings as errors, we cannot adopt latest Scala versions.
The text was updated successfully, but these errors were encountered: