1
0
forked from aniani/vim

patch 8.2.4529: Vim9: comparing partial with function fails

Problem:    Vim9: comparing partial with function fails.
Solution:   Support this comparison.  Avoid a crash. (closes #9909)
            Add more test cases.
This commit is contained in:
Bram Moolenaar
2022-03-08 19:43:55 +00:00
parent 673bcb10eb
commit ed0c62e7b1
8 changed files with 64 additions and 8 deletions

View File

@@ -6571,6 +6571,9 @@ func Test_type()
call assert_false(v:true is 1)
call assert_false(v:true is v:false)
call assert_false(v:none is 0)
call assert_false(v:none is [])
call assert_false(v:none is {})
call assert_false(v:none is 'text')
call assert_false(v:null is 0)
call assert_false(v:null is v:none)