Move the issue 0140 repro into the feature suite as a regression test. Asserts the build-gating diagnostic 'comptime type construction failed: comptime define(): enum has no variants' at the construction site, exit 1 — locking out the prior 'unresolved type reached LLVM emission' panic.
6 lines
295 B
Plaintext
6 lines
295 B
Plaintext
error: comptime type construction failed: comptime define(): enum has no variants
|
|
--> examples/1179-diagnostics-comptime-type-construction-bail.sx:14:10
|
|
|
|
|
14 | Empty :: define(declare("Empty"), .enum(.{ variants = .[] }));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|