test(metatype): lock declare()-never-defined rejection (examples/1181)

Diagnostics example for the bare-declare guard (14f30f3): an unfinished
declare("Undef") -> build-gating error naming the type, exit 1.
This commit is contained in:
agra
2026-06-17 06:33:31 +03:00
parent 14f30f341c
commit c185dbdd13
4 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
error: type 'Undef' is declared but never defined — complete it with define(handle, info)
--> examples/1181-diagnostics-metatype-declare-never-defined.sx:9:10
|
9 | Undef :: declare("Undef"); // never define()d
| ^^^^^^^^^^^^^^^^