Release 0.41.92
[vala-gnome.git] / tests / delegates / bug683925.vala
blob5c0ba3636f5a318786ba6b9b7b91f429ae295ca1
1 delegate void FooFunc ();
3 class Foo : Object {
4 bool check = false;
6 FooFunc func = default_func;
8 public Foo () {
11 void default_func () {
12 check = true;
15 public void run () {
16 func ();
17 assert (check);
21 void main(){
22 var foo = new Foo ();
23 foo.run ();