codegen: Fix array size variable on assignment
[vala-lang.git] / tests / objects / bug566909.vala
blob0af250b9decb17b5ce72c835571806de778aef68
1 class Maman.Foo : Object {
2 [Signal (detailed = true)]
3 public signal void bar ();
6 void main () {
7 bool detailed1 = false;
8 bool detailed2 = false;
9 string detail1 = "detail1";
10 string detail2 = "detail2";
12 var foo = new Maman.Foo ();
13 foo.bar[detail1].connect (() => { detailed1 = true; });
14 foo.bar[detail2].connect (() => { detailed2 = true; });
15 foo.bar[detail1] ();
16 foo.bar[detail2] ();
17 assert (detailed1 && detailed2);