diff --git a/std/jule/sema/type.jule b/std/jule/sema/type.jule index f56b63fe2..57d9d71bf 100644 --- a/std/jule/sema/type.jule +++ b/std/jule/sema/type.jule @@ -1292,6 +1292,9 @@ impl TypeChecker { if n < 0 { self.push_err(decl.elem.token, LogMsg.ArraySizeIsNeg) ret nil + } else if types::BIT_SIZE != 64 && f64(n) > types::max(PrimKind.Int) { + self.push_err(decl.size.token, LogMsg.OverflowLimits) + ret nil } }