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
gtk+-4.0: Change type of Gdk.Key.* constants to uint
[vala-gnome.git]
/
tests
/
objects
/
bug628639.vala
blob
3850958ef845279a8855ddb2c412955176d3185d
1
class
Foo
<
G
> {
2
public signal
void
bar
(
G item
);
3
4
public
void
fire
(
G item
) {
5
bar
(
item
);
6
}
7
}
8
9
bool
fired
;
10
11
void
on_bar
(
int
item
) {
12
assert
(
item
==
42
);
13
fired
=
true
;
14
}
15
16
void
main
() {
17
Foo
<
int
>
foo
=
new Foo
<
int
> ();
18
foo
.
bar
.
connect
(
on_bar
);
19
foo
.
fire
(
42
);
20
assert
(
fired
);
21
}