feat: for step 步长 — for i in 0 to 10 step 2 { ... }
Token(75): +TOK_STEP, desugar_for 增加 step_expr 参数, 默认 step=1 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
fn main() -> i64 {
|
||||
for i in 0 to 10 step 2 {
|
||||
print_i64(i);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user