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
770 B
Plaintext
16 lines
770 B
Plaintext
// issue 0105 / F4 — same-name VALUE const with DIFFERENT declared TYPES across
|
|
// two flat-imported modules (A: `i32`, B: `f64`), referenced bare at a mixed-type
|
|
// site. A bare `K` here is genuinely ambiguous — there are ≥2 flat-visible same-
|
|
// name authors — so it must diagnose loudly (exit 1), exactly as the same-typed
|
|
// 0787 does. The type-inference change must NOT mask the ambiguity (inferring
|
|
// `.unresolved` for the ambiguous reference) — the emission path still fires the
|
|
// loud author-count diagnostic regardless of the consts' declared types.
|
|
#import "modules/std.sx";
|
|
#import "0794-modules-same-name-const-type-ambiguous/a.sx";
|
|
#import "0794-modules-same-name-const-type-ambiguous/b.sx";
|
|
|
|
main :: () -> i32 {
|
|
print("K={}\n", K);
|
|
0
|
|
}
|