summaryrefslogtreecommitdiff
path: root/vala/valaconstant.vala
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2011-08-02 16:25:31 +0200
committerLuca Bruno <lucabru@src.gnome.org>2011-08-02 16:26:56 +0200
commita4d21426be1e1256b3368bb68ced00a49906dcc7 (patch)
tree428da03a8ffcd0369d822e56b4411520fa1c0188 /vala/valaconstant.vala
parent021ea9a87dd5f9159353bff72607c6eab2c18183 (diff)
downloadvala-a4d21426be1e1256b3368bb68ced00a49906dcc7.tar.gz
Guard for possible errors when checking the value of constants
Fixes bug 655726.
Diffstat (limited to 'vala/valaconstant.vala')
-rw-r--r--vala/valaconstant.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala
index b805203a0..53b84c60e 100644
--- a/vala/valaconstant.vala
+++ b/vala/valaconstant.vala
@@ -138,7 +138,10 @@ public class Vala.Constant : Symbol, Lockable {
} else {
value.target_type = type_reference;
- value.check (context);
+ if (!value.check (context)) {
+ error = true;
+ return false;
+ }
if (!value.value_type.compatible (type_reference)) {
error = true;