summaryrefslogtreecommitdiff
path: root/tests/basic-types/bug686336.vala
blob: 3aceef84203cb342500ae57174f50604fc0eb7ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Foo {
	static int[] static_bar = { 1, 2, 3 };
	static int[] static_baz = create_array ();

	int[] bar = { 1, 2, 3 };
	int[] baz = create_array ();

	static int[] create_array () {
		return { 1, 2, 3 };
	}

	public void test () {
		assert (static_bar.length == 3);
		assert (static_baz.length == 3);

		assert (bar.length == 3);
		assert (baz.length == 3);
	}
}

void main () {
	var foo = new Foo ();
	foo.test ();
}