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:
20
local_tests/test_basic_sharing.hako
Normal file
20
local_tests/test_basic_sharing.hako
Normal file
@ -0,0 +1,20 @@
|
||||
// Test basic field access sharing
|
||||
static box Main {
|
||||
init { mybox }
|
||||
|
||||
main() {
|
||||
me.mybox = new IntegerBox(100)
|
||||
|
||||
print("=== Test 1: Basic field access ===")
|
||||
local temp1
|
||||
temp1 = me.mybox
|
||||
print("temp1 ID: " + temp1.toString())
|
||||
|
||||
local temp2
|
||||
temp2 = me.mybox
|
||||
print("temp2 ID: " + temp2.toString())
|
||||
|
||||
// The IDs should be the same if sharing works
|
||||
return temp1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user