I read that comptime_ints cannot be used at runtime.
fn tt(comptime x: comptime_int, y: i8) i8 {
return x + y;
}
test "comptime_int" {
const a = 2;
var y: i8 = 3;
y += 1;
try expect(tt(a, y) == 6);
}
Wouldn't the tt function above execute at runtime, and therefore the comptime_int is getting used at runtime?