mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-23 22:06:04 +00:00
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. |
||
|---|---|---|
| .. | ||
| languages | ||
| plans | ||
| cli-reference.md | ||
| deployment.md | ||
| editor-setup.md | ||
| mcp-reference.md | ||
| wiki-generation.md | ||