Files
sx/examples/diagnostics/expected/1169-diagnostics-enum-literal-bad-target.stderr
agra 66bdc70bf1 test: group examples into per-category folders
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.
2026-06-21 14:41:34 +03:00

12 lines
533 B
Plaintext

error: 'nonexistent' is not a variant of 'Platform' (variants are: ios, android_apk)
--> examples/diagnostics/1169-diagnostics-enum-literal-bad-target.sx:10:20
|
10 | a : Platform = .nonexistent; // unknown variant: lists the real ones
| ^^^^^^^^^^^^
error: enum literal '.foo' cannot type itself from non-enum destination 'i64'
--> examples/diagnostics/1169-diagnostics-enum-literal-bad-target.sx:11:15
|
11 | b : i64 = .foo; // non-enum destination
| ^^^^