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.
15 lines
514 B
Plaintext
15 lines
514 B
Plaintext
// Enum literals against unusable destinations are DIAGNOSED, never a
|
|
// silent variant 0 (issue 0098's sibling holes): an unknown variant of a
|
|
// real enum, a non-enum destination type, and a destination-less literal
|
|
// each get their own error.
|
|
#import "modules/std.sx";
|
|
|
|
Platform :: enum u8 { ios; android_apk; }
|
|
|
|
main :: () -> i32 {
|
|
a : Platform = .nonexistent; // unknown variant: lists the real ones
|
|
b : i64 = .foo; // non-enum destination
|
|
print("{}{}\n", a, b);
|
|
return 0;
|
|
}
|