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
722 B
Plaintext
16 lines
722 B
Plaintext
// A reserved type name used as a DESTRUCTURE binding name (`i2`) is rejected
|
|
// even when it lives in an IMPORTED module — the exhaustive binding-name walk
|
|
// descends the `namespace_decl` an `mod :: #import` wraps and renders the
|
|
// diagnostic against that module's source (issue 0077's universal-coverage
|
|
// rule applied to the destructure form). Without it the binding reaches
|
|
// lowering and aborts LLVM verification.
|
|
//
|
|
// Regression (issues 0076 + 0077, attempt-4 coverage). Expected: one clean
|
|
// diagnostic pointing at the imported module's `i2, rest := ...`, exit 1.
|
|
#import "modules/std.sx";
|
|
mod :: #import "1124-diagnostics-imported-reserved-destructure/mod.sx";
|
|
|
|
main :: () -> i32 {
|
|
return mod.run();
|
|
}
|