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.
11 lines
520 B
Plaintext
11 lines
520 B
Plaintext
// An identifier used in a LOCAL variable's type annotation that names no
|
|
// declared type is rejected, exactly like a signature or struct-field use.
|
|
// Previously a body-level annotation bypassed the check: the type resolver's
|
|
// empty-struct stub silently gave the local a 0-field type, so `v: Coordnate
|
|
// = 5` compiled and ran (the `5` dropped) with no diagnostic. Regression
|
|
// (issue 0064, body-level positions). Expected: error at the annotation; exit 1.
|
|
main :: () -> i32 {
|
|
v: Coordnate = 5;
|
|
return 0;
|
|
}
|