codegen: Fix floating reference regression with Variants
[vala-gnome.git] / tests / basic-types / bug632322.vala
blob6116b9662653bc6f917b06b2ad87254c557f5a19
1 void main () {
2 int[] foo = new int[42];
3 int i = 1;
4 foo[i = i - 1] = 23;
5 assert (i == 0);