Feedback
Module constants and variables resolve from module methods regardless of declaration order
- Status
- Fixed
- Fixed in
- v26.8.4
- Last updated
- 2026-08-17
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Referring to a module constant or variable by its bare name from a method declared earlier in the same module fails with Undefined identifier '...', even though qualification with the module name works. The error is not specific to concatenation: any bare use (concatenation, a plain read, a comparison, an argument, or an assignment target) hits it when the member is declared after the method.
Expected: a method declared directly on a module can reference module constants and variables regardless of declaration order, matching how module-to-module method calls already behave.