GitNexus/docs
Mick Cooney 3cf1e70a5b fix(r): type a receiver only when every binding agrees
A constructor binding (`x <- T$new()`) now types `x` only when every
binding of `x` in its frame (the file's top level or a function) is that
constructor; NULL, constants and field writes through `x` are neutral.
Another class, any other value, a formal, a `for` variable, `rm()`,
`assign()` with a literal name or a replacement call on `x` leaves the
receiver untyped, so the call is unresolved instead of reaching another
class's method. `<<-` and `->>` bind in the enclosing frames only, never
in their own.

Every typed receiver now reads the public interface as `self` does: a
private member gets no edge and records `member-lookup-ambiguous`, a
parent's public member wins over a child's private one, and a member the
owner lookup misses is no longer bound to a free function of that name.
Member calls match `$` only, so `u@save()` mints no site. A generator
object (`User$save()`) is never a receiver of an instance method, and a
dotted class name (`My.Class`) gets no receiver lookup (R-13), which also
gives up its own and inherited methods.

New fixtures r-receiver-agreement and r-typed-receiver-members pin the
rule, its kept idioms and its limits (with(), a rebinding in another
file, last-wins); the receiver corpus gains eleven rows.
2026-10-25 09:21:14 +00:00
..
languages fix(r): type a receiver only when every binding agrees 2026-10-25 09:21:14 +00:00
plans fix(scope): preserve lexical bindings in HTTP wrapper detection (#3632) 2026-10-20 11:36:06 +01:00
cli-reference.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
deployment.md feat(web): resolve a root-relative GITNEXUS_BACKEND_URL against the page origin (#3640) 2026-10-24 08:45:24 +01:00
editor-setup.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
mcp-reference.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
wiki-generation.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00