comparison src/testdir/test_vim9_expr.vim @ 22341:fc3350a38389 v8.2.1719

patch 8.2.1719: Vim9: no error if comma is missing in between arguments Commit: https://github.com/vim/vim/commit/10e4f12bf4cd08328618bbf4e57a15435296e586 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 20 22:43:52 2020 +0200 patch 8.2.1719: Vim9: no error if comma is missing in between arguments Problem: Vim9: no error if comma is missing in between arguments. Solution: Give an error message.
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Sep 2020 22:45:03 +0200
parents a5b16c9eee9d
children 712bc35842aa
comparison
equal deleted inserted replaced
22340:0b83fa038b54 22341:fc3350a38389
2110 CheckDefFailure(["let x = 'yes'->Echo"], 'E107:', 1) 2110 CheckDefFailure(["let x = 'yes'->Echo"], 'E107:', 1)
2111 CheckScriptFailure([ 2111 CheckScriptFailure([
2112 "vim9script", 2112 "vim9script",
2113 "let x = substitute ('x', 'x', 'x', 'x')" 2113 "let x = substitute ('x', 'x', 'x', 'x')"
2114 ], 'E121:', 2) 2114 ], 'E121:', 2)
2115 CheckDefFailure(["let Ref = function('len' [1, 2])"], 'E1123:', 1)
2115 2116
2116 let auto_lines =<< trim END 2117 let auto_lines =<< trim END
2117 def g:some#func(): string 2118 def g:some#func(): string
2118 return 'found' 2119 return 'found'
2119 enddef 2120 enddef