mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 9.0.1188: return value of type() for class and object unclear
Problem: Return value of type() for class and object unclear. Solution: Add v:t_object and v:t_class.
This commit is contained in:
@@ -155,6 +155,11 @@ def Test_class_basic()
|
||||
|
||||
# call an object method
|
||||
assert_equal('(2, 12)', pos.ToString())
|
||||
|
||||
assert_equal(v:t_class, type(TextPosition))
|
||||
assert_equal(v:t_object, type(pos))
|
||||
assert_equal('class<TextPosition>', typename(TextPosition))
|
||||
assert_equal('object<TextPosition>', typename(pos))
|
||||
END
|
||||
v9.CheckScriptSuccess(lines)
|
||||
enddef
|
||||
|
Reference in New Issue
Block a user