Files
mgmt/lang/interpret_test/TestAstFunc3/sendrecv-simple2.txtar
James Shubin 8ea7d4cf84 engine: graph, util: Restore send/recv behaviour
A regression in 4b0cdf9123 caused the
basic send/recv functionality to break for simple scenarios. This was
due to inadequate testing, and a partial misunderstanding of the
situation.

New testing should hopefully catch more cases, but send/recv and
compile-time checks are still not as complete as is probably possible.
2024-01-31 22:59:58 -05:00

16 lines
423 B
Plaintext

-- main.mcl --
# send/recv of value1.any into test.msg works!
value "value1" {
any => "i am value1",
}
print "print1" {
#msg => "", # gets value from send_value above
}
Value["value1"].any -> Print["print1"].msg
-- OUTPUT --
Edge: value[value1] -> print[print1] # value[value1] -> print[print1]
Field: print[print1].Msg = "i am value1"
Field: value[value1].Any = "i am value1"
Vertex: print[print1]
Vertex: value[value1]