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
@paulp said:
I initially did that, then backed off in terror from the hundreds if not thousands of warnings the compiler emitted. The prevailing style inside the compiler involves a lot of pattern matches like this:
caseValDef(mods, name, tpt, rhs) =>
ctx // we use the symbol to add fieldscaseDefDef(mods, name, tparams, vparamss, tpt, rhs) =>// let's do nothing!
That's ten unused warnings, now multiply by one billion. Maybe this problem is unique to the compiler.
There is already a warning for unused values, fields, imports etc. what no warning for unused variables bound in a pattern match:
y
is never used, thus the compiler should warn about it.The text was updated successfully, but these errors were encountered: