summaryrefslogtreecommitdiff
path: root/tests/asynchronous
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2016-09-24 13:02:48 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2016-09-24 13:02:48 +0200
commitf8fba4c0f2aec7a4fa01993f94be0f797adfe0b5 (patch)
tree6aa2b80b09dc8874b130269c0f5d39b195c459b9 /tests/asynchronous
parent28dd295c46d203df39db1b58c0754f1991c0442c (diff)
downloadvala-f8fba4c0f2aec7a4fa01993f94be0f797adfe0b5.tar.gz
tests: Add async constructor test
https://bugzilla.gnome.org/show_bug.cgi?id=659886
Diffstat (limited to 'tests/asynchronous')
-rw-r--r--tests/asynchronous/bug659886.vala14
1 files changed, 14 insertions, 0 deletions
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 () {
+}