- instance_v2 now includes legacy compatibility layer - All interpreter code migrated to use instance_v2 - Added legacy field access methods (get_fields, set_field_legacy, etc.) - Fixed type conversion issues (NyashValue vs SharedNyashBox) - instance.rs still exists but no longer used in interpreter - TODO: Remove instance.rs completely in next phase - TODO: Implement proper SharedNyashBox -> NyashValue conversion 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
440 B
Plaintext
26 lines
440 B
Plaintext
// 🎯 シンプルなInstanceBox v2テスト
|
|
|
|
print("テスト開始")
|
|
|
|
// ユーザー定義Box
|
|
box SimpleBox {
|
|
init { count }
|
|
|
|
birth() {
|
|
me.count = 100
|
|
}
|
|
|
|
getCount() {
|
|
return me.count
|
|
}
|
|
}
|
|
|
|
// インスタンス生成
|
|
local box1 = new SimpleBox()
|
|
print("Box生成完了")
|
|
|
|
// メソッド呼び出し
|
|
local result = box1.getCount()
|
|
print("カウント取得完了")
|
|
|
|
print("テスト成功") |