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.
18 lines
927 B
Plaintext
18 lines
927 B
Plaintext
// fix-0102d site 2 / attempt-2 (issue 0102): the first-wins winner's body is
|
|
// independently BROKEN (references an undefined symbol) and is never used. A
|
|
// shadow author from a later flat import takes its OWN `pick` as a function
|
|
// VALUE (`g : () -> i64 = pick`). The value must bind the shadow (own-author
|
|
// wins) and the broken winner must NOT be lowered — a rerouted fn value never
|
|
// uses the winner. Before the fix the fn-value site eagerly lazily-lowered the
|
|
// name-keyed winner BEFORE the resolver rerouted, surfacing the winner's
|
|
// `unresolved 'missing_from_a'` for a function the value never touches.
|
|
// Regression: per-source function-value conversion must not pre-lower the winner.
|
|
#import "modules/std.sx";
|
|
#import "0735-modules-flat-same-name-fn-value-winner/a.sx";
|
|
#import "0735-modules-flat-same-name-fn-value-winner/b.sx";
|
|
|
|
main :: () -> i32 {
|
|
print("from_b_value = {}\n", from_b_value());
|
|
0
|
|
}
|