Report.error (source_reference, "'void' not supported as variable type");
return false;
}
- variable_type.check (context);
+ if (!variable_type.check (context)) {
+ error = true;
+ return false;
+ }
if (!external_package) {
context.analyzer.check_type (variable_type);
}
if (format_literal != null) {
string format = format_literal.eval ();
if (!context.analyzer.check_print_format (format, arg_it, source_reference)) {
+ error = true;
return false;
}
}
// simple statements, no side effects after method call
} else if (!(context.analyzer.current_symbol is Block)) {
// can't handle errors in field initializers
+ error = true;
Report.error (source_reference, "Field initializers must not throw errors");
} else {
// store parent_node as we need to replace the expression in the old parent node later on