// An array dimension that is not a compile-time integer constant is a hard // error, not a silently-fabricated 0-length array. Here a type alias's // dimension is a computed expression (`M + 1`), which the registration-time // resolver cannot evaluate. // // Regression (issue 0083): the stateless resolver printed a non-fatal warning // and fabricated length 0, then let compilation continue — producing a 0-byte // alloca and corrupt element access. It now yields the `.unresolved` sentinel, // which the alias registration surfaces as this diagnostic, aborting the build // with a non-zero exit. #import "modules/std.sx"; M :: 4; BadArr :: [M + 1]s64; main :: () { a : BadArr = ---; a[0] = 7; print("a0={}\n", a[0]); }