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
The first peace of code produce false compiler message:
pattern var cases in value $anonfun is never used: use a wildcard _ or suppress this warning with cases@_
cases @ List(_, target) <- pairOriginTarget(caseStaticService.getCaseWithPrinting)
The second compiles ok.
I suggest some optimization is to blame.
The text was updated successfully, but these errors were encountered:
Reproduction steps
Scala version: 2.13.10 (also checked 2.13.8)
Problem
The first peace of code produce false compiler message:
pattern var cases in value $anonfun is never used: use a wildcard
_
or suppress this warning withcases@_
cases @ List(_, target) <- pairOriginTarget(caseStaticService.getCaseWithPrinting)
The second compiles ok.
I suggest some optimization is to blame.
The text was updated successfully, but these errors were encountered: