-
Notifications
You must be signed in to change notification settings - Fork 21
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
value-discard warning is not suppressed for methods with implicit params #12011
Comments
The adapted
|
This is a real pain in the neck when using ScalaTest. For example:
I'm not even sure why.
There are other overloads that do have implicit parameters. I tried reproducing this without using ScalaTest and was unable to. |
I should point out that my example is not for |
I also don't know of a workaround for my case. Specifying the implicit parameter is not an option because there is no implicit parameter. |
They are different. I think there is a ticket somewhere for ScalaTest. Perhaps on sbt-tpolecat of all places. I hope to update Edit: by mechanism I understood mechanism and not syntax. Yes, I think the syntax for expressing "I mean Unit here" is the same. |
It seems this was fixed.
|
Actually the code to check for the annotation was updated by |
Should I create another issue for the |
@steinybot please feel free! |
reproduction steps
using Scala (2.13.2),
problem
expect no
warning: discarded non-Unit value
as per scala/scala#7563explicitly passing implicit argument works
The text was updated successfully, but these errors were encountered: