]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Allow unscoped enum values where possible 33c91a04f758c89f0402994a6df894e6c2032def
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 19 Nov 2017 19:17:07 +0000 (20:17 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 19 Nov 2017 19:21:30 +0000 (20:21 +0100)
commit33c91a04f758c89f0402994a6df894e6c2032def
tree38688141a315edbeec0683eec971c1860e187a5f
parent6b656b078e49de3286deaa3ae8edcfdb6202e6e8
vala: Allow unscoped enum values where possible

If the scope for an enumeration value can be determined from current context
it is possible to omit the enum's scope.

Based on patch by Timo Kluck

https://bugzilla.gnome.org/show_bug.cgi?id=666035
tests/Makefile.am
tests/enums/bug666035.vala [new file with mode: 0644]
vala/valabinaryexpression.vala
vala/valamemberaccess.vala
vala/valaswitchlabel.vala