From a59fe089dd664e054b27057a4e4921b2763c9eeb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 15 Aug 2025 04:21:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=AF=20Phase=209.75D:=20Begin=20clone?= =?UTF-8?q?=5Fbox()=20vs=20share=5Fbox()=20implementation=20-=20Initial=20?= =?UTF-8?q?analysis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com> --- test_array_state_issue.nyash | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test_array_state_issue.nyash 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