We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zig version: 0.1.1.92fc5947
var v = 25; test "" { var arr: [v]u8 = undefined; }
zig: zig/src/ir.cpp:6164: bool ir_num_lit_fits_in_other_type(IrAnalyze*, IrInstruction*, TypeTableEntry*, bool): Assertion `const_val->special != ConstValSpecialRuntime' failed. zsh: abort (core dumped) zig test test.zig
var v : u8 = 25;
error: unable to evaluate constant expression
const v = 25;
The text was updated successfully, but these errors were encountered:
44f38b0
No branches or pull requests
Zig version: 0.1.1.92fc5947
var v : u8 = 25;
we get the expectederror: unable to evaluate constant expression
.const v = 25;
and our program compiles, as expected.The text was updated successfully, but these errors were encountered: