diff --git a/test_array_state_issue.nyash b/test_array_state_issue.nyash new file mode 100644 index 00000000..f6d48bae --- /dev/null +++ b/test_array_state_issue.nyash @@ -0,0 +1,11 @@ +// 🚨 ArrayBox状態保持問題のテスト +static box Main { + init { result } + main() { + local arr + arr = new ArrayBox() + arr.push("hello") // 状態変更 + me.result = arr.length() // 期待値: 1, 実際: 0? + return me.result + } +} \ No newline at end of file