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
620 B
Plaintext
16 lines
620 B
Plaintext
// A zero `Vector` lane count is rejected — a vector must have at least one lane
|
|
// (strictly positive). Contrast with an array dimension / value-param count,
|
|
// where zero is a valid length-0 instantiation (see 0147). This pins the
|
|
// zero-rejecting half of the context-dependent count rule (specs.md, Array
|
|
// Types).
|
|
//
|
|
// Regression (F0.4 attempt 12): the spec now states the zero rule per consumer;
|
|
// the `Vector` lane count stays strictly positive while array dims / value-param
|
|
// counts accept zero.
|
|
#import "modules/std.sx";
|
|
|
|
main :: () {
|
|
v : Vector(0, f32) = ---;
|
|
print("unreachable: {}\n", v.x);
|
|
}
|