Don't warn about parameters in grouped types unless all apply
Closed this issue · 1 comments
mvdan commented
For example:
func Transfer(from, to SomeStruct) {
b := make([]byte, 10)
from.Read(b)
to.SomeOtherMethod(b)
}
from
could be an io.Reader
, but to a human this doesn't make much sense.
mvdan commented
To clarify, if both from
and to
could be replaced by a better type, then we should produce the warning.