summaryrefslogtreecommitdiff
path: root/tests/asynchronous
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-11-14 14:53:04 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2019-11-14 14:53:04 +0100
commitd11ee9864f6f4daf1411933302fe35493a428174 (patch)
treef0b8cd87417349dd65eb4fdbfd907cef18e9a4ab /tests/asynchronous
parent9c7a7891b024e66df377fc2b5d60abfbfbdd9edd (diff)
downloadvala-d11ee9864f6f4daf1411933302fe35493a428174.tar.gz
vala: Report error for async creation expression without yield
Diffstat (limited to 'tests/asynchronous')
-rw-r--r--tests/asynchronous/creation-missing-yield.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/asynchronous/creation-missing-yield.test b/tests/asynchronous/creation-missing-yield.test
new file mode 100644
index 000000000..0fe234a6e
--- /dev/null
+++ b/tests/asynchronous/creation-missing-yield.test
@@ -0,0 +1,10 @@
+Invalid Code
+
+class Foo {
+ public async Foo () {
+ }
+}
+
+void main () {
+ var foo = new Foo ();
+}