const std = @import("std"); const expect = std.testing.expect; test "comptime vars" { var x: i32 = 1; comptime var y: i32 = 1; x += 1; y += 1; expect(x == 2); expect(y == 2); if (y != 2) @compileError("wrong y value"); }