fix(lang): a function named like an engine namespace method's target is refused
Random.range is rng_range, so a package's own rng_range(a, b, c) took every Random.range call silently. Where the program calls such a method and the target resolves to a function of its own, the function is refused, naming the namespace method and the call. Reseed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
31d842fca4
commit
73129b59d5
8 changed files with 13668 additions and 13100 deletions
6
changes/engine-alias-shadow.md
Normal file
6
changes/engine-alias-shadow.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
bump: patch
|
||||
type: fix
|
||||
**A function named like an engine namespace method's target is refused where that method is
|
||||
called.** `Random.range` is `rng_range`, so a package's own `rng_range(a, b, c)` silently took
|
||||
every `Random.range(1, 6)` (and the checker then asked for its third argument). It is now an error
|
||||
naming the function, the namespace method and the call.
|
||||
Loading…
Add table
Add a link
Reference in a new issue