tests/15-enums: add invalid storage/value tests Signed-off-by: Sebastian <sebastian@sebsite.pw>
1 files changed, 6 insertions(+), 0 deletions(-) M tests/15-enums.ha
M tests/15-enums.ha => tests/15-enums.ha +6 -0
@@ 82,6 82,12 @@ fn reject() void = { def a: int = e::VAL1; type e = enum { VAL1 = VAL2, VAL2 = a }; ") as exited != EXIT_SUCCESS); // invalid storage assert(compile("type a = enum f64 { A = 0.0 };") as exited != EXIT_SUCCESS); // invalid value assert(compile("type a = enum { A = void };") as exited != EXIT_SUCCESS); }; type interdependent1 = enum {