markupreader: Add get_attributes() method returning a copy of attributes.
[vala-lang.git] / tests / objects / bug628639.vala
blob3850958ef845279a8855ddb2c412955176d3185d
1 class Foo<G> {
2 public signal void bar (G item);
4 public void fire (G item) {
5 bar (item);
9 bool fired;
11 void on_bar (int item) {
12 assert (item == 42);
13 fired = true;
16 void main() {
17 Foo<int> foo = new Foo<int> ();
18 foo.bar.connect (on_bar);
19 foo.fire (42);
20 assert (fired);