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
Nowarn receiver of extension taking params (#23351)
Fixes#23349
Extensions are regular methods, but the "receiver" parameter is exempt
from the unused check. By error, previously `x.m` was exempt but not
`x.f(y)`.
(The reason for the exemption may be that the method expressed as a
member of the receiver type may make no reference to `this`, without
warning.)
Check for parameters used only in default arg expressions. A parameter
may be aliased in a default arg getter method, so a usage of that getter
param counts as a usage of the method param (or class param). Defaults
of class params are found in the class companion.
0 commit comments