## Compiler version 3.3.0-RC2 ## 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 for x <- List(1,2,3) // unused pattern variable warning y = x * 2 yield y ``` ## Expectation no warning since the pattern variable is used in the pure expression