Mercurial > vim
comparison src/testdir/test_vim9_script.vim @ 25634:27cb2e79ccde v8.2.3353
patch 8.2.3353: Vim9: type of argument for negate not checked at compile time
Commit: https://github.com/vim/vim/commit/cd6b4f300189b4920f7ee7f0204338e91210674b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 15 20:36:28 2021 +0200
patch 8.2.3353: Vim9: type of argument for negate not checked at compile time
Problem: Vim9: type of argument for negate not checked at compile time.
Solution: Add a compile time check.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Aug 2021 20:45:04 +0200 |
parents | 5ab75ca75d21 |
children | 6ed39aa92cb9 |
comparison
equal
deleted
inserted
replaced
25633:4b6c030bda5c | 25634:27cb2e79ccde |
---|---|
467 endtry | 467 endtry |
468 assert_equal(222, n) | 468 assert_equal(222, n) |
469 | 469 |
470 try | 470 try |
471 n = -g:astring | 471 n = -g:astring |
472 catch /E39:/ | 472 catch /E1012:/ |
473 n = 233 | 473 n = 233 |
474 endtry | 474 endtry |
475 assert_equal(233, n) | 475 assert_equal(233, n) |
476 | 476 |
477 try | 477 try |
478 n = +g:astring | 478 n = +g:astring |
479 catch /E1030:/ | 479 catch /E1012:/ |
480 n = 244 | 480 n = 244 |
481 endtry | 481 endtry |
482 assert_equal(244, n) | 482 assert_equal(244, n) |
483 | 483 |
484 try | 484 try |
485 n = +g:alist | 485 n = +g:alist |
486 catch /E745:/ | 486 catch /E1012:/ |
487 n = 255 | 487 n = 255 |
488 endtry | 488 endtry |
489 assert_equal(255, n) | 489 assert_equal(255, n) |
490 | 490 |
491 var nd: dict<any> | 491 var nd: dict<any> |