summaryrefslogtreecommitdiff
path: root/tests/chainup/struct-base-foo.vala
blob: b54bd654dc0df13ee7dfa52163f441ab88f7b452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public struct Foo {
	public int i;
	public int j;
	public Foo.foo () {
		i = 1;
	}
}

public struct Bar : Foo {
	public Bar () {
		base.foo ();
		this.j = 1;
	}
}

void main () {
	var bar = Bar ();
	assert (bar.i == 1);
	assert (bar.j == 1);
}