Problem: Imported class does not work when used twice in a line.
Solution: Fix the type parsing.
return FAIL;
if (rettv->v_type == VAR_ANY && *s == '.')
{
+ char_u *ns = s + 1;
+ s = ns;
+ while (ASCII_ISALNUM(*s) || *s == '_')
+ ++s;
int sid = rettv->vval.v_number;
- return eval_variable(s + 1, 0, sid, rettv, NULL, 0);
+ return eval_variable(ns, (int)(s - ns), sid, rettv, NULL, 0);
}
return OK;
}
a = animal.Animal.new('fish', 'Eric')
assert_equal('fish', a.kind)
assert_equal('Eric', a.name)
+
+ var b: animal.Animal = animal.Animal.new('cat', 'Garfield')
+ assert_equal('cat', b.kind)
+ assert_equal('Garfield', b.name)
END
v9.CheckScriptSuccess(lines)
enddef
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1186,
/**/
1185,
/**/