Mercurial > vim
comparison src/testdir/test_vim9_expr.vim @ 21210:44611891e22c v8.2.1156
patch 8.2.1156: Vim9: No error for invalid command in compiled function
Commit: https://github.com/vim/vim/commit/002262f4dee452964190b0d022aa7443f602b288
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 8 17:47:57 2020 +0200
patch 8.2.1156: Vim9: No error for invalid command in compiled function
Problem: Vim9: No error for invalid command in compiled function.
Solution: Handle CMD_SIZE.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 08 Jul 2020 18:00:05 +0200 |
parents | f26a606e6dbc |
children | bcd08812cde3 |
comparison
equal
deleted
inserted
replaced
21209:5ab01f8473b2 | 21210:44611891e22c |
---|---|
1418 | 1418 |
1419 func Test_expr_fails() | 1419 func Test_expr_fails() |
1420 call CheckDefFailure(["let x = '1'is2"], 'E488:') | 1420 call CheckDefFailure(["let x = '1'is2"], 'E488:') |
1421 call CheckDefFailure(["let x = '1'isnot2"], 'E488:') | 1421 call CheckDefFailure(["let x = '1'isnot2"], 'E488:') |
1422 | 1422 |
1423 call CheckDefExecFailure(["CallMe ('yes')"], 'E492:') | 1423 call CheckDefFailure(["CallMe ('yes')"], 'E476:') |
1424 call CheckDefFailure(["CallMe2('yes','no')"], 'E1069:') | 1424 call CheckDefFailure(["CallMe2('yes','no')"], 'E1069:') |
1425 call CheckDefFailure(["CallMe2('yes' , 'no')"], 'E1068:') | 1425 call CheckDefFailure(["CallMe2('yes' , 'no')"], 'E1068:') |
1426 | 1426 |
1427 call CheckDefFailure(["v:nosuch += 3"], 'E1001:') | 1427 call CheckDefFailure(["v:nosuch += 3"], 'E1001:') |
1428 call CheckDefFailure(["let v:statusmsg = ''"], 'E1016: Cannot declare a v: variable:') | 1428 call CheckDefFailure(["let v:statusmsg = ''"], 'E1016: Cannot declare a v: variable:') |