diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-09-17 15:16:59 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-09-17 15:16:59 +0200 |
commit | 69cc119d0db1b05e581647105e30875136948fa3 (patch) | |
tree | b30bda1b1c45e83303f54f6b40e714b2310419f5 /tests/parser | |
parent | fec5844439e3186a2fdb0c3754ab7988e57c3400 (diff) | |
download | vala-69cc119d0db1b05e581647105e30875136948fa3.tar.gz |
vala: Improve parsing of with-statement and allow it as embedded statement
Diffstat (limited to 'tests/parser')
-rw-r--r-- | tests/parser/with-embedded.vala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/parser/with-embedded.vala b/tests/parser/with-embedded.vala index c668e5afc..6f61891d1 100644 --- a/tests/parser/with-embedded.vala +++ b/tests/parser/with-embedded.vala @@ -1,4 +1,8 @@ void main () { - with (10) - assert (to_string () == "10"); + if (true) + with ("foo") + assert (to_string () == "foo"); + + with (10) + assert (to_string () == "10"); } |