]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Parse standalone integer/real literals as expression statement 77aec5976dd55591c4b82603ac70ec9deb71f2fb
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 4 Apr 2020 08:25:31 +0000 (10:25 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 4 Apr 2020 08:47:32 +0000 (10:47 +0200)
commit77aec5976dd55591c4b82603ac70ec9deb71f2fb
tree5edf91b10eea71ee210dc46c32b7d7c1fcd6e943
parentd08837bd13043f1dbe0a198ad11499bb239abec7
vala: Parse standalone integer/real literals as expression statement

Issue an error in the semantic check to forbid such statements.

Parsing such an errornous expression-statement failed since
5464767cfa5a8dbbc5f46293693ca627b8fcc46d

Fixes https://gitlab.gnome.org/GNOME/vala/issues/961
tests/Makefile.am
tests/parser/invalid-statement-delimiter.test [new file with mode: 0644]
tests/semantic/literal-expression.test [new file with mode: 0644]
vala/valaexpressionstatement.vala
vala/valaparser.vala