diff src/testdir/test_vim9_assign.vim @ 28131:d8bf200cd761 v8.2.4590

patch 8.2.4590: Vim9: range type check has wrong offset Commit: https://github.com/vim/vim/commit/2995e5cf4eb9651827788e14f9f42ab34ce4c7e1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 18 21:41:47 2022 +0000 patch 8.2.4590: Vim9: range type check has wrong offset Problem: Vim9: range type check has wrong offset. Solution: Adjust offset for CHECKTYPE. Remove other type check.
author Bram Moolenaar <Bram@vim.org>
date Fri, 18 Mar 2022 22:45:02 +0100
parents dd2ed5345f20
children b96409b84eaf
line wrap: on
line diff
--- a/src/testdir/test_vim9_assign.vim
+++ b/src/testdir/test_vim9_assign.vim
@@ -1602,7 +1602,7 @@ def Test_assign_list()
       l[g:idx : 1] = [0]
       echo l
   END
-  v9.CheckDefExecAndScriptFailure(lines, 'E1030: Using a String as a Number: "x"')
+  v9.CheckDefExecAndScriptFailure(lines, ['E1012: Type mismatch; expected number but got string', 'E1030: Using a String as a Number: "x"'])
 
   lines =<< trim END
       var l = [1, 2]