repo.or.cz
/
vala-gnome.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Release 0.41.92
[vala-gnome.git]
/
tests
/
delegates
/
bug683925.vala
blob
5c0ba3636f5a318786ba6b9b7b91f429ae295ca1
1
delegate
void
FooFunc
();
2
3
class
Foo
:
Object
{
4
bool
check
=
false
;
5
6
FooFunc func
=
default_func
;
7
8
public
Foo
() {
9
}
10
11
void
default_func
() {
12
check
=
true
;
13
}
14
15
public
void
run
() {
16
func
();
17
assert
(
check
);
18
}
19
}
20
21
void
main
(){
22
var
foo
=
new
Foo
();
23
foo
.
run
();
24
}