diff options
author | Simon Werbeck <simon.werbeck@gmail.com> | 2016-09-18 18:30:02 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-09-18 21:24:10 +0200 |
commit | 33879ec4c2286314957ac0e03a5a8e89ba6faa02 (patch) | |
tree | ba6a622026ba3c10d80e302f269d3e417011e4d6 /tests/basic-types | |
parent | c4336c0f38b31094cb875b4556eb73c2d6f11ef8 (diff) | |
download | vala-33879ec4c2286314957ac0e03a5a8e89ba6faa02.tar.gz |
Check for assignment to constant
This simply checks if the left-hand side is a constant and if so raises
an error.
Fixes bug 771626
Diffstat (limited to 'tests/basic-types')
-rw-r--r-- | tests/basic-types/bug771626.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basic-types/bug771626.test b/tests/basic-types/bug771626.test new file mode 100644 index 000000000..64a5da8bf --- /dev/null +++ b/tests/basic-types/bug771626.test @@ -0,0 +1,7 @@ +Invalid Code + +const int FOO = 0; + +void main () { + FOO = 1; +} |