Move examples/*.sx and their expected/ snapshots into per-category subfolders (examples/<category>/...). Folder = leading filename token, with ffi-objc/ffi-jni kept whole; filenames are unchanged. The corpus runner and LSP sweep now discover each category's expected/ dir, while issues/ stays flat. Example 1058's repo-root-relative companion import is made file-relative. Path strings embedded in 164 snapshots were regenerated (path-only changes). Test-layout docs in CLAUDE.md updated.
16 lines
634 B
Plaintext
16 lines
634 B
Plaintext
// A module's own scalar const `K` and another module's same-named ARRAY
|
|
// GLOBAL (`K : [4]i64 = .[...]`) coexist: each module's bare `K` binds its
|
|
// OWN author. The global registry is last-wins across modules, so without
|
|
// source-aware selection a.sx's `K` read the array global's address.
|
|
//
|
|
// Regression (issue 0115): a.sx printed the array's address; h.sx's reads
|
|
// stayed correct only by registration order.
|
|
|
|
#import "modules/std.sx";
|
|
#import "0835-modules-same-name-global-vs-const-own/a.sx";
|
|
h :: #import "0835-modules-same-name-global-vs-const-own/h.sx";
|
|
|
|
main :: () {
|
|
print("a_k={} use_k={}\n", a_k(), h.use_k());
|
|
}
|