Files
hakorune/local_tests/mir_loop_no_local.nyash

13 lines
300 B
Plaintext
Raw Normal View History

// MIR test with static main pattern - loop without local variables
static box Main {
init { counter, result }
main() {
me.counter = 0
loop(me.counter < 3) {
me.counter = me.counter + 1
}
me.result = me.counter
return me.result
}
}