ceu-lang / ceu

The Programming Language Céu

Home Page:http://www.ceu-lang.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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