Events declared as a public fields don't work when using code/await prototype
AnnyCaroline opened this issue · comments
This code executes correctly, and prints out the string "change".
code/await Test(none) -> (event none change) -> none do
await 1s;
emit change;
end
var&? Test test = spawn Test();
await test!.change;
_printf("change\n");
This one, however, never prints the string.
code/await Test(none) -> (event none change) -> none;
var&? Test test = spawn Test();
await test!.change;
_printf("change\n");
code/await Test(none) -> (event none change) -> none do
await 1s;
emit change;
end