summaryrefslogtreecommitdiff
path: root/tests/semantic/member-access-static-with-instance.vala
blob: d8bb23206a424e4f35e1a48477d944c204868d7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct Foo {
	public const int FOO = 23;

	public static Foo static_field;
	public int i;
}

const int BAR = Foo.static_field.FOO;

void main () {
	assert (BAR == 23);
}