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:
18
tests/development/test_from_fixed.hako
Normal file
18
tests/development/test_from_fixed.hako
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
box SimpleChild : P2PBox {
|
||||
constructor(nodeId, world) {
|
||||
from P2PBox.constructor(nodeId, world)
|
||||
}
|
||||
|
||||
test() {
|
||||
print("Testing from call")
|
||||
return from P2PBox.send("test", "data", "target")
|
||||
}
|
||||
}
|
||||
|
||||
local world, child, result
|
||||
world = new IntentBox()
|
||||
child = new SimpleChild("test", world)
|
||||
result = child.test()
|
||||
print("Result: " + result)
|
||||
|
||||
Reference in New Issue
Block a user