Reject-bad-programs snapshot test suite #61
Loading…
Reference in a new issue
No description provided.
Delete branch "us7/reject-bad-programs-snapshot"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds insta snapshot tests for the checker's diagnostics, mirroring the parser's snapshot-test discipline: one representative program per DiagnosticKind (minus Syntax, which is parser-owned), plus one accepted program covering structs and functions together.
Also fixes NotCallable's new Option payload so the diagnostic no longer silently drops when the call's callee isn't a plain identifier (e.g. x.f(), f()()).
Closes #7