30 lines
571 B
Plaintext
30 lines
571 B
Plaintext
|
|
// 簡単な循環参照テスト
|
||
|
|
|
||
|
|
print("=== Simple Circular Reference Test ===")
|
||
|
|
|
||
|
|
box TestBox {
|
||
|
|
init { value }
|
||
|
|
|
||
|
|
setup() {
|
||
|
|
print("TestBox setup start")
|
||
|
|
me.value = "test"
|
||
|
|
print("TestBox setup complete")
|
||
|
|
}
|
||
|
|
|
||
|
|
getValue() {
|
||
|
|
print("About to access me.value...")
|
||
|
|
return me.value
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
print("Creating TestBox...")
|
||
|
|
local testBox
|
||
|
|
testBox = new TestBox()
|
||
|
|
testBox.setup()
|
||
|
|
|
||
|
|
print("Testing field access...")
|
||
|
|
local result
|
||
|
|
result = testBox.getValue()
|
||
|
|
print("Result: " + result)
|
||
|
|
|
||
|
|
print("Simple circular test completed!")
|