diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-11-14 14:53:04 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-11-14 14:53:04 +0100 |
commit | d11ee9864f6f4daf1411933302fe35493a428174 (patch) | |
tree | f0b8cd87417349dd65eb4fdbfd907cef18e9a4ab /tests/asynchronous | |
parent | 9c7a7891b024e66df377fc2b5d60abfbfbdd9edd (diff) | |
download | vala-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.test | 10 |
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 (); +} |