Files
hakorune/tests/development/test_constructor_debug.nyash

18 lines
305 B
Plaintext

// コンストラクタデバッグ
box Test {
init { value }
Test(v) {
me.value = v
print("Constructor called with: " + v)
}
getValue() {
return me.value
}
}
local t
print("Creating Test...")
t = new Test("hello")
print("getValue: " + t.getValue())