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.
14 lines
496 B
Plaintext
14 lines
496 B
Plaintext
// An identifier used in a type position that names no declared type, builtin,
|
|
// or in-scope generic parameter is rejected. Previously the type resolver's
|
|
// empty-struct-stub fallback silently interned a 0-field struct under the typo,
|
|
// so the program compiled and ran. Regression (issue 0064, broader fix).
|
|
// Expected: a clean "unknown type" error at the field; exit 1.
|
|
Point :: struct {
|
|
x: i32;
|
|
y: Coordnate; // typo for a non-existent type
|
|
}
|
|
|
|
main :: () -> i32 {
|
|
return 0;
|
|
}
|