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
scala -Ywarn-unused:patvars
scala>for (k @ (a, _) <-Option((0, 0)) if a ==0) yield k
warning: pattern vark in value $anonfun is never used: use a wildcard `_` or suppress this warning with`k@_`
problem
k is used and the code won't compile without it. The warning appears to happen due to withFilter not using k.
The text was updated successfully, but these errors were encountered:
reproduction steps
Scala 2.13.2
problem
k
is used and the code won't compile without it. The warning appears to happen due towithFilter
not usingk
.The text was updated successfully, but these errors were encountered: