17 lines
395 B
Plaintext
17 lines
395 B
Plaintext
// Legacy neg_forrange_single, now a positive range-binding case. The import
|
|
// initializes total; the one-byte "A" iteration binds the closer shadowmod
|
|
// value in the loop body. Builds and runs 42 + 65 = 107.
|
|
|
|
package main;
|
|
|
|
import shadowmod;
|
|
|
|
fn main() i32 = {
|
|
let s: str = "A";
|
|
let total: i32 = shadowmod.say();
|
|
for (let shadowmod .. s) {
|
|
total += shadowmod: i32;
|
|
};
|
|
return total;
|
|
};
|