gtk+-4.0: Change type of Gdk.Key.* constants to uint
[vala-gnome.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);