EXTERN char e_using_object_as_string[]
INIT(= N_("E1324: Using an object as a String"));
EXTERN char e_method_not_found_on_class_str_str[]
- INIT(= N_("E1325: Method not found on class \"%s\": %s"));
+ INIT(= N_("E1325: Method \"%s\" not found in class \"%s\""));
EXTERN char e_variable_not_found_on_object_str_str[]
- INIT(= N_("E1326: Variable not found on object \"%s\": %s"));
+ INIT(= N_("E1326: Variable \"%s\" not found in object \"%s\""));
EXTERN char e_object_required_found_str[]
INIT(= N_("E1327: Object required, found %s"));
EXTERN char e_constructor_default_value_must_be_vnone_str[]
endclass
var obj = Something.new()
END
- v9.CheckSourceFailure(lines, 'E1326: Variable not found on object "Something": state', 1)
+ v9.CheckSourceFailure(lines, 'E1326: Variable "state" not found in object "Something"', 1)
# Space before ":" in a member variable declaration
lines =<< trim END
var outer_obj = Outer.new(inner_obj)
F(outer_obj)
END
- v9.CheckSourceFailure(lines, 'E1326: Variable not found on object "Inner": someval', 1)
+ v9.CheckSourceFailure(lines, 'E1326: Variable "someval" not found in object "Inner"', 1)
enddef
" Nested assignment to a object variable which is of another class type
trip.three = 33
assert_equal(33, trip.three)
- assert_fails('trip.four = 4', 'E1326: Variable not found on object "Triple": four')
+ assert_fails('trip.four = 4', 'E1326: Variable "four" not found in object "Triple"')
END
v9.CheckSourceSuccess(lines)
var a = A.new()
var v = a.bar
END
- v9.CheckSourceFailure(lines, 'E1326: Variable not found on object "A": bar', 5)
+ v9.CheckSourceFailure(lines, 'E1326: Variable "bar" not found in object "A"', 5)
enddef
" These messages should show the defining class of the variable (base class),
var a = A.new()
defcompile a.Foo()
END
- v9.CheckSourceFailureList(lines, ['E1326: Variable not found on object "A": Foo', 'E475: Invalid argument: a.Foo()'])
+ v9.CheckSourceFailureList(lines, ['E1326: Variable "Foo" not found in object "A"', 'E475: Invalid argument: a.Foo()'])
enddef
def Test_class_object_to_string()
endclass
var p = Base.new('Peter')
END
- v9.CheckSourceFailure(lines, 'E1325: Method not found on class "Base": new', 8)
+ v9.CheckSourceFailure(lines, 'E1325: Method "new" not found in class "Base"', 8)
lines =<< trim END
abstract class Base
var obj = C.new()
obj.Islocked("this.notobjmember")
END
- v9.CheckSourceFailure(lines, 'E1326: Variable not found on object "C": notobjmember')
+ v9.CheckSourceFailure(lines, 'E1326: Variable "notobjmember" not found in object "C"')
# access a script variable through methods
lines =<< trim END
var c = C.new()
assert_equal(1234, C._Foo())
END
- v9.CheckSourceFailure(lines, 'E1325: Method not found on class "C": _Foo', 16)
+ v9.CheckSourceFailure(lines, 'E1325: Method "_Foo" not found in class "C"', 16)
enddef
" Test for using the return value of a class/object method as a function
enddef
T()
END
- v9.CheckSourceFailure(lines, 'E1326: Variable not found on object "A": _a', 2)
+ v9.CheckSourceFailure(lines, 'E1326: Variable "_a" not found in object "A"', 2)
# private static member variable
lines =<< trim END
method_name, cl->class_name);
}
else
- semsg(_(e_method_not_found_on_class_str_str), cl->class_name,
- method_name);
+ semsg(_(e_method_not_found_on_class_str_str), method_name,
+ cl->class_name);
vim_free(method_name);
}
semsg(_(e_class_variable_str_accessible_only_using_class_str),
varname, cl->class_name);
else
- semsg(_(e_variable_not_found_on_object_str_str), cl->class_name,
- varname);
+ semsg(_(e_variable_not_found_on_object_str_str), varname,
+ cl->class_name);
}
else
{