summaryrefslogtreecommitdiff
path: root/tests/structs/bug623092.vala
blob: 4bc1dcbc225243168aac0bfb2da1afb9076ca2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public struct Foo {
	public int bar;
	public Foo (int bar) {
		this.bar = bar;
	}
}

public Foo make_foo (int bar) {
	return Foo (bar);
}

void main () {
	var foo = Foo (10);
	assert (foo == make_foo (10));
}