-rm -f opt_test.vim test_result.log $(CLEANUP_FILES)
-rm -rf $(RM_ON_RUN) $(RM_ON_START)
-rm -f valgrind.*
- -rm -f asan.*
+ -rm -f asan.* asan_test_*
-rm -f guidialog guidialogfile
# Delete the files produced by benchmarking, so they can run again.
var myView = View.new('This should be ok')
assert_equal('This should be ok', myView.content.value)
END
- # TODO: The root cause will be identified later.
- v9.CheckScriptFailure(lines, 'E1099: Unknown error while executing new', 7)
+ v9.CheckScriptFailure(lines, 'E1376: Object variable "value2" accessible only using class "Run" object', 2)
enddef
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1099,
/**/
1098,
/**/
lhs->lhs_type = cctx->ctx_type_stack.ga_len == 0 ? &t_void
: get_type_on_stack(cctx, 0);
- if (lhs->lhs_type->tt_type == VAR_OBJECT)
+ if (lhs->lhs_type->tt_type == VAR_CLASS
+ || lhs->lhs_type->tt_type == VAR_OBJECT)
{
- // Check whether the object variable is modifiable
+ // Check whether the class or object variable is modifiable
if (!lhs_class_member_modifiable(lhs, var_start, cctx))
return FAIL;
}
otv = class->class_members_tv;
}
- if (otv != NULL)
- {
- clear_tv(&otv[lidx]);
- otv[lidx] = *tv;
- }
- else
- status = FAIL;
-
+ clear_tv(&otv[lidx]);
+ otv[lidx] = *tv;
}
else
{