Debian Codegraph @

lang/interpret_test/TestAstFunc3/send-recv-1.txtar

raw
1 -- main.mcl --
2 test "send" {
3 sendvalue => "this is hello", # sends on key of `hello`
4 # we also secret send on key of `answer` the int value of 42
5
6 Meta:autogroup => false,
7 }
8
9 test "recv" {
10 expectrecv => ["anotherstr",], # expecting to recv on these keys!
11
12 Meta:autogroup => false,
13 }
14
15 # must error, incompatible types
16 Test["send"].answer -> Test["recv"].anotherstr
17 -- OUTPUT --
18 # err: errUnify: cannot send/recv from test[send].answer to test[recv].anotherstr: field kind mismatch between int and string