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
637 B
Plaintext
16 lines
637 B
Plaintext
// Namespace aliases carry ONE level: an alias declared by a module is
|
|
// usable in that module's DIRECT flat importers only. Two flat hops away
|
|
// (`facade.sx` declares `t`, `facade2.sx` flat-imports facade, this file
|
|
// flat-imports facade2) the alias is NOT visible — the carry does not
|
|
// chain, mirroring bare-name non-transitivity (0763).
|
|
//
|
|
// Regression (issue 0114): the bare `alias.fn()` call path used to serve
|
|
// this from the global qualified registration at any import depth.
|
|
|
|
#import "modules/std.sx";
|
|
#import "0832-modules-namespace-alias-two-hop-not-visible/facade2.sx";
|
|
|
|
main :: () {
|
|
print("{}\n", t.helper());
|
|
}
|