Mercurial > vim
diff src/testdir/test_vim9_script.vim @ 21831:d8422de73113 v8.2.1465
patch 8.2.1465: Vim9: subscript not handled properly
Commit: https://github.com/vim/vim/commit/56acb0943ede35cd9d2f6667cde2442819ccbf59
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 16 14:48:19 2020 +0200
patch 8.2.1465: Vim9: subscript not handled properly
Problem: Vim9: subscript not handled properly.
Solution: Adjust error message. Remove dead code. Disallow string to
number conversion in scripts.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Aug 2020 15:00:05 +0200 |
parents | 0deb6f96a5a3 |
children | e3f9528bddda |
line wrap: on
line diff
--- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -793,19 +793,20 @@ def Test_try_catch() endtry assert_equal(99, n) + # TODO: this will change when index on "any" works try n = g:astring[3] - catch /E714:/ + catch /E1029:/ n = 77 endtry assert_equal(77, n) try n = l[g:astring] - catch /E39:/ - n = 77 + catch /E1029:/ + n = 88 endtry - assert_equal(77, n) + assert_equal(88, n) try n = s:does_not_exist