Files
hakorune/local_tests/test_simple_instance_v2.hako

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("テスト成功")