+2009-01-04 Jürg Billeter <j@bitron.ch>
+
+ * vala/valathrowstatement.vala:
+
+ Fix crash when using invalid throw expressions, fixes bug 565571
+
2009-01-04 Jürg Billeter <j@bitron.ch>
* vapi/packages/gtk+-2.0/:
/* valathrowstatement.vala
*
- * Copyright (C) 2007-2008 Jürg Billeter
+ * Copyright (C) 2007-2009 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
error_expression.target_type.value_owned = true;
if (error_expression != null) {
- error_expression.check (analyzer);
+ if (!error_expression.check (analyzer)) {
+ error = true;
+ return false;
+ }
if (!(error_expression.value_type is ErrorType)) {
Report.error (error_expression.source_reference, "`%s' is not an error type".printf (error_expression.value_type.to_string ()));