1
0
forked from aniani/vim

patch 7.4.1606

Problem:    Having type() handle a Funcref that is or isn't a partial
            differently causes problems for existing scripts.
Solution:   Make type() return the same value. (Thinca)
This commit is contained in:
Bram Moolenaar
2016-03-19 18:52:29 +01:00
parent 3905e291fe
commit 953cc7fb13
3 changed files with 4 additions and 1 deletions

View File

@@ -942,6 +942,7 @@ func Test_type()
call assert_equal(0, type(0))
call assert_equal(1, type(""))
call assert_equal(2, type(function("tr")))
call assert_equal(2, type(function("tr", [8])))
call assert_equal(3, type([]))
call assert_equal(4, type({}))
call assert_equal(5, type(0.0))