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.
14 lines
584 B
Plaintext
14 lines
584 B
Plaintext
// issue 0105 case 4 — two-flat-visible → AMBIGUOUS. `main` flat-imports two
|
|
// modules that each author a same-name `Thing`, and authors none itself. A bare
|
|
// `Thing` reference can't be disambiguated, so the compiler emits a LOUD
|
|
// diagnostic ("ambiguous … qualify the reference or remove the duplicate
|
|
// import") and poisons the result — never a silent first-/last-wins pick.
|
|
#import "modules/std.sx";
|
|
#import "0755-modules-same-name-struct-ambiguous/a.sx";
|
|
#import "0755-modules-same-name-struct-ambiguous/b.sx";
|
|
|
|
main :: () -> i32 {
|
|
t : Thing = .{ a = 1 };
|
|
0
|
|
}
|