phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
23
local_tests/test_field_access.hako
Normal file
23
local_tests/test_field_access.hako
Normal file
@ -0,0 +1,23 @@
|
||||
// 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user