23 lines
534 B
Plaintext
23 lines
534 B
Plaintext
|
|
// Test for Phase 6 Box reference operations
|
||
|
|
// Simple field access test
|
||
|
|
|
||
|
|
static box Main {
|
||
|
|
init { console }
|
||
|
|
|
||
|
|
main() {
|
||
|
|
me.console = new ConsoleBox()
|
||
|
|
me.console.log("Testing Phase 6 Box reference operations")
|
||
|
|
|
||
|
|
// Create a simple object
|
||
|
|
local obj
|
||
|
|
obj = new StringBox("Hello")
|
||
|
|
|
||
|
|
// Test field access
|
||
|
|
local result
|
||
|
|
result = obj.length
|
||
|
|
|
||
|
|
print("Field access result: " + result)
|
||
|
|
|
||
|
|
return "Phase 6 test completed"
|
||
|
|
}
|
||
|
|
}
|