Files
hakorune/tests/development/test_from_fixed.nyash

19 lines
376 B
Plaintext
Raw Normal View History

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)