phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0

This commit is contained in:
nyash-codex
2025-11-06 15:41:52 +09:00
parent 2dc370223d
commit 77d4fd72b3
1658 changed files with 6288 additions and 2612 deletions

View File

@ -0,0 +1,24 @@
// 🚨 ArrayBox状態保持テスト - コアとなる問題を検証
static box Main {
init { result1, result2, result3 }
main() {
// テスト1: 基本的な状態保持
local arr1
arr1 = new ArrayBox()
arr1.push("hello")
me.result1 = arr1.length() // 期待値: 1
// テスト2: 複数操作の状態保持
local arr2
arr2 = new ArrayBox()
arr2.push("first")
arr2.push("second")
me.result2 = arr2.length() // 期待値: 2
// テスト3: 変数再利用での状態保持
arr1.push("world")
me.result3 = arr1.length() // 期待値: 2
return me.result1
}
}