mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 8.2.0657: Vim9: no check if called variable is a FuncRef
Problem: Vim9: no check if called variable is a FuncRef. Solution: Add a type check.
This commit is contained in:
@@ -213,6 +213,12 @@ def Test_expr4_equal()
|
||||
assert_equal(true, function('g:Test_expr4_equal', [123]) == function('g:Test_expr4_equal', [123]))
|
||||
assert_equal(false, function('g:Test_expr4_equal', [123]) == function('g:Test_expr4_is', [123]))
|
||||
assert_equal(false, function('g:Test_expr4_equal', [123]) == function('g:Test_expr4_equal', [999]))
|
||||
|
||||
let OneFunc: func
|
||||
let TwoFunc: func
|
||||
OneFunc = function('len')
|
||||
TwoFunc = function('len')
|
||||
assert_equal(true, OneFunc('abc') == TwoFunc('123'))
|
||||
enddef
|
||||
|
||||
" test != comperator
|
||||
|
Reference in New Issue
Block a user