summaryrefslogtreecommitdiff
path: root/tests/objects/property-array-length.vala
blob: b3d52eeef7bd38df69bdd30e57e3c9cca297a685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Compact]
class Foo {
	public uint8[] data {
		owned get {
			return new uint8[42];
		}
	}
}

async void foo (uint8[] data) {
	assert (data.length == 42);
}

async void bar () {
	var f = new Foo ();
	foo.begin (f.data);
}

void main() {
	bar.begin ();
}