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
642 B
Plaintext
16 lines
642 B
Plaintext
// Two direct flat imports each declare the SAME alias name `t` pointing at
|
|
// DIFFERENT targets. Using the carried alias here is ambiguous and rejected
|
|
// loudly — never a silent first-registration pick. (Each module's own use
|
|
// of its own `t` stays valid — see 0834.)
|
|
//
|
|
// Regression (issue 0114): collisions used to resolve silently first-wins
|
|
// through the global qualified-fn registration.
|
|
|
|
#import "modules/std.sx";
|
|
#import "0833-modules-namespace-alias-carried-collision-ambiguous/a.sx";
|
|
#import "0833-modules-namespace-alias-carried-collision-ambiguous/b.sx";
|
|
|
|
main :: () {
|
|
print("{} {} {}\n", use_a(), use_b(), t.fx());
|
|
}
|