summaryrefslogtreecommitdiff
path: root/tests/asynchronous
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2015-01-12 15:09:14 +0100
committerLuca Bruno <lucabru@src.gnome.org>2015-01-12 15:10:21 +0100
commitc0ae346ac099fb6e8bfa59dba03ac7412523183f (patch)
treea307c8d15da66a4b64949259811032f49e9e4cb8 /tests/asynchronous
parent693b84f581c9e7ee9579fe7bf446aac3eb45f810 (diff)
downloadvala-c0ae346ac099fb6e8bfa59dba03ac7412523183f.tar.gz
codegen: Fix detailed signal disconnect in async methods
Fixes bug 742621
Diffstat (limited to 'tests/asynchronous')
-rw-r--r--tests/asynchronous/bug742621.vala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/asynchronous/bug742621.vala b/tests/asynchronous/bug742621.vala
new file mode 100644
index 000000000..1577cafd9
--- /dev/null
+++ b/tests/asynchronous/bug742621.vala
@@ -0,0 +1,15 @@
+class Xyzzy : Object {
+ public bool b { get; set; }
+}
+
+Xyzzy? xyzzy = null;
+
+private void on_b() {
+}
+
+async void go_async() throws Error {
+ xyzzy.notify["b"].disconnect(on_b);
+}
+
+void main () {
+}