test: green up after Phase 2 merge for #26\n\n- Fix AST tests (is_override)\n- Align MIR builder test with current If AST\n- Adjust ResultBox API usage in tests\n- Add len() helpers to ArrayBox/BufferBox for tests
This commit is contained in:
18
tests/development/test_constructor_debug.nyash
Normal file
18
tests/development/test_constructor_debug.nyash
Normal file
@ -0,0 +1,18 @@
|
||||
// コンストラクタデバッグ
|
||||
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())
|
||||
Reference in New Issue
Block a user