Commit 086582ac authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

improve error reporting for parenthesized expressions

2007-08-30  Juerg Billeter  <j@bitron.ch>

	* vala/valasemanticanalyzer.vala: improve error reporting for
	  parenthesized expressions

svn path=/trunk/; revision=543
parent e582e3ce
2007-08-30 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: improve error reporting for
parenthesized expressions
2007-08-30 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: improve error reporting for foreach
......
......@@ -1189,6 +1189,12 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
}
public override void visit_parenthesized_expression (ParenthesizedExpression! expr) {
if (expr.inner.error) {
// ignore inner error
expr.error = true;
return;
}
expr.static_type = expr.inner.static_type.copy ();
// don't call g_object_ref_sink on inner and outer expression
expr.static_type.floating_reference = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment