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
% cat S.scala
object O {
for {
s <- Seq[String]()
Seq(a) = s.toSeq
} yield a
}
% /usr/local/scala-2.11.0-M4/bin/scalac -Xlint S.scala
S.scala:4: warning: local val in value $anonfun is never used
Seq(a) = s.toSeq
^
The text was updated successfully, but these errors were encountered:
@SethTisue said:
I'm getting a lot of spurious "unused" warnings with -Xlint and 2.11.0-M4. The details of what produces them are rather various. So far I've opened this ticket plus SI-7711 and SI-7707. I could open a few more with yet different details. Would it be better to keep opening separate tickets, or should we just have one meta-ticket that I add new and different test cases to as I discover them...?
The text was updated successfully, but these errors were encountered: