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:
27
local_tests/test_simple_array.hako
Normal file
27
local_tests/test_simple_array.hako
Normal file
@ -0,0 +1,27 @@
|
||||
// ArrayBox length問題の緊急調査
|
||||
static box ArrayDebugTest {
|
||||
init { arr }
|
||||
|
||||
main() {
|
||||
print("=== ArrayBox緊急デバッグ ===")
|
||||
|
||||
// ArrayBox作成
|
||||
me.arr = new ArrayBox()
|
||||
print("作成直後のlength: " + me.arr.length().toString())
|
||||
|
||||
// 要素追加
|
||||
me.arr.push("test1")
|
||||
print("push後のlength: " + me.arr.length().toString())
|
||||
|
||||
me.arr.push("test2")
|
||||
print("2個目push後のlength: " + me.arr.length().toString())
|
||||
|
||||
// 直接的なテスト
|
||||
local newArr
|
||||
newArr = new ArrayBox()
|
||||
newArr.push("direct")
|
||||
print("新しい配列のlength: " + newArr.length().toString())
|
||||
|
||||
return "debug完了"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user