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
I comment that it doesn't do tuples (i, j) match { case (i, j) => } but a possible narrowing of the behavior would be to allow it only if there is exactly one pattern var. Then v would warn because i is present (albeit used).
Dotty is not (yet) so liberal, but considers only a top-level Bind in the pattern. Probably I intended to import the behavior (or the improved behavior). (The dotty check has regressions or other tickets with priority.)
The OP should work as expected, but the PR still allows case Some(x) and similar. In particular, case email(s, _) => for arbitrary extraction of one patvar.
reproducible locally using dbuild (also probably reproducible outside dbuild if you locally publish scalameta?)
https://scala-ci.typesafe.com/job/scala-2.13.x-jdk17-integrate-community-build/2616/artifact/logs/scalafix-build.log
I haven't bisected it but it's in this range:
eyeballing that range, scala/scala#11032 looks like a possible culprit (@som-snytt)
The text was updated successfully, but these errors were encountered: