summaryrefslogtreecommitdiff
path: root/tests/structs/simple-type-boxed.vala
blob: a2bae93115fe4647c1552b78e663b242d951cd4e (plain)
1
2
3
4
5
6
7
8
9
10
11
[SimpleType]
struct Foo {
	public int i;
	public uint j;
}

void main () {
	Foo? foo = { 42, 4711U };
	assert (foo.i == 42);
	assert (foo.j == 4711U);
}