summaryrefslogtreecommitdiff
path: root/tests/delegates/bug539166.vala
blob: de764a25a949bdd7d2bdcf0e1bb930bad9f0333b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
delegate void Deleg ();

class Foo : Object {
	public Object baz = new Object ();

	public void bar () {
		assert (baz != null);
	}
}

void main () {
	var foo = new Foo ();
	var deleg = (Deleg) foo.bar;
	foo = null;
	deleg ();
}