diff options
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/asynchronous/bug659886.vala | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index b2caa7767..e5c23018e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -199,6 +199,7 @@ TESTS = \ asynchronous/bug653861.vala \ asynchronous/bug654336.vala \ asynchronous/bug654337.vala \ + asynchronous/bug659886.vala \ asynchronous/bug661961.vala \ asynchronous/bug742621.vala \ asynchronous/closures.vala \ diff --git a/tests/asynchronous/bug659886.vala b/tests/asynchronous/bug659886.vala new file mode 100644 index 000000000..39f48e59b --- /dev/null +++ b/tests/asynchronous/bug659886.vala @@ -0,0 +1,14 @@ +class Foo : Object { + public async Foo () { + Object (); + } +} + +Foo f; + +public async void bar () { + f = yield new Foo (); +} + +void main () { +} |