pub(super) fn check_collisions(parsed_impl: &ParsedImpl) -> Result<()>Expand description
Refuses an impl method on a generic the field methods define: two
definitions of $.Class (or setMethod("$", "Class")) would follow, and
the later one would win. The getters-only form generates no $<- /
[[<-, so a hand-written one is the point of it; the read-only form
generates refusing ones (#2268); the readers ($, [[, names,
as.list and .DollarNames on S3, $ and .DollarNames on S4) are
generated in every form. Env classes have no check: their methods are not
S3 methods.