## Compiler version 3.3.1-RC1-bin-20230213-8c616bf-NIGHTLY ## Minimized code <!-- This code should be self contained, compilable (with possible failures) and as small as possible. Ideally, we should be able to just copy this code in a file and run `scalac` (and maybe `scala`) to reproduce the issue. --> ```Scala //> using scala "3.3.1-RC1-bin-20230213-8c616bf-NIGHTLY" //> using options "-Wunused:all" @main def hello = for { i <- 1 to 2 if true _ = println(i) } yield () ``` ## Output ```scala Compiling project (Scala 3.3.1-RC1-bin-20230213-8c616bf-NIGHTLY, JVM) [warn] ./src/scala3/FileA.scala:8:5: unused local definition [warn] i <- 1 to 2 if true [warn] ^ ``` ## Expectation Don't report `i` as unused local definition