diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2024-05-08 20:24:33 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-05-08 20:24:33 +0200 |
commit | 9937d8b61922a02311509fb3352583d9e8c54885 (patch) | |
tree | bbd19a2854e11b36e3ed535872e82fbe4d24352b /src/testdir/test_vim9_assign.vim | |
parent | c7a8eb5ff2ddd919e6f39faec93d81c52874695a (diff) |
patch 9.1.0398: Vim9: imported vars are not properly type checkedv9.1.0398
Problem: Vim9: imported vars are not properly type checked
Solution: Check the imported variable type properly
(Yegappan Lakshmanan)
closes: #14729
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/test_vim9_assign.vim')
-rw-r--r-- | src/testdir/test_vim9_assign.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testdir/test_vim9_assign.vim b/src/testdir/test_vim9_assign.vim index 4296c37092..7a72edce00 100644 --- a/src/testdir/test_vim9_assign.vim +++ b/src/testdir/test_vim9_assign.vim @@ -650,7 +650,7 @@ def Test_assign_index() var bl = 0z11 bl[1] = g:val END - v9.CheckDefExecAndScriptFailure(lines, 'E1030: Using a String as a Number: "22"') + v9.CheckDefExecAndScriptFailure(lines, ['E1030: Using a String as a Number: "22"', 'E1012: Type mismatch; expected number but got string']) # should not read the next line when generating "a.b" var a = {} |