]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Fix short-circuiting behavior of coalescing operator 6f673c2c9768402cbfe5e206da9c3c0180e5a4b3 98/head
authorJeremy Philippe <jeremy.philippe@gmail.com>
Sat, 11 Jan 2020 00:18:43 +0000 (01:18 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 11 Jan 2020 08:42:04 +0000 (09:42 +0100)
commit6f673c2c9768402cbfe5e206da9c3c0180e5a4b3
treeddc566378dfacc9979696d87aae0c1f6ad57dd3c
parent6cfa112524d13f878d02149475079e34cd366116
vala: Fix short-circuiting behavior of coalescing operator

It is closely modeled after how ConditionalExpression implements
short-circuiting behavior.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/534
tests/Makefile.am
tests/control-flow/bug764440.vala [new file with mode: 0644]
tests/control-flow/coalesce-execution-order.vala [new file with mode: 0644]
tests/control-flow/coalesce-short-circuit.vala [new file with mode: 0644]
vala/valabinaryexpression.vala