Files
hakorune/apps/tests/phase285_weak_field_ok_explicit.hako

14 lines
271 B
Plaintext
Raw Normal View History

box Node {
weak parent
}
static box Main {
main() {
local n1 = new Node()
local n2 = new Node()
n1.parent = weak n2 // ✅ Explicit weak operator (Phase 285W-Syntax-0)
print("OK: explicit weak operator")
return 0
}
}