summaryrefslogtreecommitdiff
path: root/tests/asynchronous/bug602594.vala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/asynchronous/bug602594.vala')
-rw-r--r--tests/asynchronous/bug602594.vala18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/asynchronous/bug602594.vala b/tests/asynchronous/bug602594.vala
new file mode 100644
index 000000000..5c8129312
--- /dev/null
+++ b/tests/asynchronous/bug602594.vala
@@ -0,0 +1,18 @@
+class Foo {
+ public signal void bar (string s, bool b);
+}
+
+async void callback (string s, bool b) {
+ assert (s == "foo");
+ assert (b);
+ success = true;
+}
+
+bool success = false;
+
+void main() {
+ var foo = new Foo ();
+ foo.bar.connect (callback);
+ foo.bar ("foo", true);
+ assert (success);
+}