diff src/testdir/test_vim9_expr.vim @ 20982:bb49b5090a9c v8.2.1042

patch 8.2.1042: Vim9: cannot put an operator on the next line Commit: https://github.com/vim/vim/commit/df069eec3b90401e880e9b0e258146d8f36c474d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 22 23:02:51 2020 +0200 patch 8.2.1042: Vim9: cannot put an operator on the next line Problem: Vim9: cannot put an operator on the next line. Solution: Require a colon before a range to see if that causes problems.
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Jun 2020 23:15:04 +0200
parents 396fe712eb0f
children ae4b1d497a06
line wrap: on
line diff
--- a/src/testdir/test_vim9_expr.vim
+++ b/src/testdir/test_vim9_expr.vim
@@ -585,12 +585,12 @@ func Test_expr5_fails()
   call CheckDefFailure(["let x = '1' ..'2'"], msg)
   call CheckDefFailure(["let x = '1'.. '2'"], msg)
 
-  call CheckDefFailure(["let x = 0z1122 + 33"], 'E1035')
-  call CheckDefFailure(["let x = 0z1122 + [3]"], 'E1035')
-  call CheckDefFailure(["let x = 0z1122 + 'asd'"], 'E1035')
-  call CheckDefFailure(["let x = 33 + 0z1122"], 'E1035')
-  call CheckDefFailure(["let x = [3] + 0z1122"], 'E1035')
-  call CheckDefFailure(["let x = 'asdf' + 0z1122"], 'E1035')
+  call CheckDefFailure(["let x = 0z1122 + 33"], 'E1051')
+  call CheckDefFailure(["let x = 0z1122 + [3]"], 'E1051')
+  call CheckDefFailure(["let x = 0z1122 + 'asd'"], 'E1051')
+  call CheckDefFailure(["let x = 33 + 0z1122"], 'E1051')
+  call CheckDefFailure(["let x = [3] + 0z1122"], 'E1051')
+  call CheckDefFailure(["let x = 'asdf' + 0z1122"], 'E1051')
   call CheckDefFailure(["let x = 6 + xxx"], 'E1001')
 endfunc