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.
12 lines
447 B
Plaintext
12 lines
447 B
Plaintext
// A named `#import c` unit declared INSIDE an aliased module (so the
|
|
// unit's namespace nests two deep in the merged tree) still compiles
|
|
// and links — collectCImportSources recurses through namespaces, the
|
|
// same way #library collection does (issue 0130's pattern).
|
|
#import "modules/std.sx";
|
|
m :: #import "1623-cimport-unit-in-aliased-module/mod.sx";
|
|
|
|
main :: () -> i32 {
|
|
print("nested unit answer = {}\n", m.answer_via_mod());
|
|
0
|
|
}
|