-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Given build.sbt
scalaVersion := "2.13.5"
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
scalacOptions += "-Ywarn-unused"
And main
object Main extends App {
for {
implicit0(i: Int) <- Option(1)
} yield println(i)
}
I get warning
[warn] /dev/foo/src/main/scala/Main.scala:3:23: local val i$implicit$1 in value $anonfun is never used
[warn] implicit0(i: Int) <- Option(1)
[warn] ^
[warn] one warning found
I do not get this on 2.13.4.
It still works and can be passed as an implicit, its just a bad warning produced.
bwiercinski, mcgizzle, ybasket, Oliver-Taylor, mr-git and 8 more
Metadata
Metadata
Assignees
Labels
No labels