diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/asynchronous/bug742621.vala | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 85ca6b351..e505699c7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -185,6 +185,7 @@ TESTS = \ asynchronous/bug654336.vala \ asynchronous/bug654337.vala \ asynchronous/bug661961.vala \ + asynchronous/bug742621.vala \ asynchronous/closures.vala \ dbus/basic-types.test \ dbus/arrays.test \ 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 () { +} |