Implement Phase 5.2: static box Main lowering to MIR

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-13 07:53:14 +00:00
parent 721bea5068
commit 3082c77ecd
2 changed files with 62 additions and 6 deletions

View File

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