semantic/method-virtual.test \
semantic/method-virtual-body.test \
semantic/methodcall-field-initializer-throws.test \
+ semantic/methodcall-invalid-argument-lambda.test \
semantic/methodcall-void-expression.test \
semantic/methodcall-yield-with-begin.test \
semantic/objectcreation-abstract-class.test \
bool force_lambda_method_closure = false;
foreach (Expression arg in argument_list) {
- arg.check (context);
+ if (!arg.check (context)) {
+ error = true;
+ continue;
+ }
if (arg is LambdaExpression && ((LambdaExpression) arg).method.closure) {
force_lambda_method_closure = true;
}
// force all lambda arguments using the same closure scope
// TODO https://gitlab.gnome.org/GNOME/vala/issues/59
- if (force_lambda_method_closure) {
+ if (!error && force_lambda_method_closure) {
foreach (Expression arg in argument_list) {
unowned LambdaExpression? lambda = arg as LambdaExpression;
if (lambda != null && lambda.method.binding != MemberBinding.STATIC) {