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.
36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
error: 'i2' is a reserved type name and cannot be used as an identifier
|
|
--> examples/diagnostics/1121-diagnostics-reserved-name-control-flow.sx:18:5
|
|
|
|
|
18 | i2, rest := pair(); // destructure name
|
|
| ^^
|
|
|
|
error: 'u8' is a reserved type name and cannot be used as an identifier
|
|
--> examples/diagnostics/1121-diagnostics-reserved-name-control-flow.sx:19:8
|
|
|
|
|
19 | if u8 := maybe() { } // if optional binding
|
|
| ^^
|
|
|
|
error: 'i16' is a reserved type name and cannot be used as an identifier
|
|
--> examples/diagnostics/1121-diagnostics-reserved-name-control-flow.sx:20:11
|
|
|
|
|
20 | while i16 := maybe() { break; } // while optional binding
|
|
| ^^^
|
|
|
|
error: 'bool' is a reserved type name and cannot be used as an identifier
|
|
--> examples/diagnostics/1121-diagnostics-reserved-name-control-flow.sx:22:13
|
|
|
|
|
22 | for xs (bool) { } // for capture name
|
|
| ^^^^
|
|
|
|
error: 'i32' is a reserved type name and cannot be used as an identifier
|
|
--> examples/diagnostics/1121-diagnostics-reserved-name-control-flow.sx:23:21
|
|
|
|
|
23 | for xs, 0.. (v, i32) { } // for index name
|
|
| ^^^
|
|
|
|
error: 'string' is a reserved type name and cannot be used as an identifier
|
|
--> examples/diagnostics/1121-diagnostics-reserved-name-control-flow.sx:26:22
|
|
|
|
|
26 | case .some: (string) { 0 }
|
|
| ^^^^^^
|