You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building tests for catsTests for Scala 2.11.12 with -Ywarn-unused, I get a following lint warning:
[warn] /tmp/better-monadic-for/cats-tests/src/test/scala/com/olegpy/bm4/CatsSyntaxTest.scala:37:13: local val in value $anonfun is never used
[warn] _ <- "dummy".pure[F]
[warn] ^
A minimal (?) example for this looks like this:
deff[F[_]:Monad] =for {
_ <-"dummy".pure[F]
a =1
} yield a
Additionally, under the same conditions this code:
[warn] /tmp/better-monadic-for/cats-tests/src/test/scala/com/olegpy/bm4/Foo.scala:8:7: local val in value $anonfun is never used
[warn] (a, b) = (1, 2)
[warn] ^
[warn] /tmp/better-monadic-for/cats-tests/src/test/scala/com/olegpy/bm4/Foo.scala:9:18: local val in value $anonfun is never used
[warn] _ = println(s"($a, $b)")
[warn] ^
When building tests for
catsTests
for Scala 2.11.12 with-Ywarn-unused
, I get a following lint warning:A minimal (?) example for this looks like this:
Additionally, under the same conditions this code:
also produces warnings:
These two seem to be introduced in 5eba85b.
The text was updated successfully, but these errors were encountered: