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
544 B
Plaintext
14 lines
544 B
Plaintext
// A NAMESPACED call to a generic free function types its result from the
|
|
// call's inferred bindings — not the unbound `T` stub (issue 0127:
|
|
// `m.pick(3, 9)` boxed as `T{}` while the flat spelling printed `9`).
|
|
#import "modules/std.sx";
|
|
m :: #import "0213-generics-namespaced-call-result/m.sx";
|
|
|
|
main :: () {
|
|
print("{}\n", m.pick(3, 9)); // i64 binding
|
|
print("{}\n", m.pick(1.5, 0.25)); // f64 binding
|
|
v := m.double(21);
|
|
w : i64 = v + 0; // the concrete type flows onward
|
|
print("{}\n", w);
|
|
}
|