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.
24 lines
943 B
Plaintext
24 lines
943 B
Plaintext
error: 'v' is not part of protocol 'Show' — a pack element exposes only the protocol's interface
|
|
--> examples/diagnostics/1164-diagnostics-inline-for-pack-rejections.sx:15:23
|
|
|
|
|
15 | print("{}\n", x.v);
|
|
| ^^^
|
|
|
|
error: a pack element cannot be captured by reference
|
|
--> examples/diagnostics/1164-diagnostics-inline-for-pack-rejections.sx:19:21
|
|
|
|
|
19 | inline for xs (*x) { }
|
|
| ^
|
|
|
|
error: inline for: pack 'xs' has 2 elements but the unroll is 5 iterations
|
|
--> examples/diagnostics/1164-diagnostics-inline-for-pack-rejections.sx:22:22
|
|
|
|
|
22 | inline for 0..5, xs (i, x) { }
|
|
| ^^
|
|
|
|
error: inline for: each iterable must be a comptime range or a pack — `inline for 0..N (i) { }` / `inline for xs (x) { }`
|
|
--> examples/diagnostics/1164-diagnostics-inline-for-pack-rejections.sx:30:16
|
|
|
|
|
30 | inline for arr (x) { }
|
|
| ^^^
|