summaryrefslogtreecommitdiff
path: root/tests/parser/lock-statement.vala
blob: 632a3e673d05aa0a21d0955e762ed05f71a8fd81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class Foo {
	int lockable;

	public void explicit_unlocking () {
		lock (lockable);
		unlock (lockable);
	}

	public void implicit_unlocking () {
		lock (lockable) {
		}
	}
}

void main () {
}