1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
bool success = false; bool success2 = false; class Foo { public signal void foo () { success = true; } [HasEmitter] public signal void foo_with_emitter () { success2 = true; } } void main () { var foo = new Foo (); foo.foo (); assert (success); foo.foo_with_emitter (); assert (success2); }