diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-01 22:11:01 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-01 22:11:01 +0200 |
commit | e69f6d044c420d41dced9ba96a3b90f25788e39a (patch) | |
tree | 93ea671c8ff74e5ba89808a4561f36cdfc5f4b5c /src/vim9compile.c | |
parent | a8c1770469504ae66c80bbdb03b6b31641215848 (diff) |
patch 8.2.0493: Vim9: some error messages not testedv8.2.0493
Problem: Vim9: some error messages not tested.
Solution: Add more tests. Fix uncovered bugs.
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index 2726e387f7..ce1ca76c24 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -766,7 +766,7 @@ generate_PUSHFUNC(cctx_T *cctx, char_u *name) /* * Generate an ISN_PUSHPARTIAL instruction with partial "part". - * Consumes "name". + * Consumes "part". */ static int generate_PUSHPARTIAL(cctx_T *cctx, partial_T *part) @@ -3808,9 +3808,6 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx) case VAR_BOOL: generate_PUSHBOOL(cctx, VVAL_FALSE); break; - case VAR_SPECIAL: - generate_PUSHSPEC(cctx, VVAL_NONE); - break; case VAR_FLOAT: #ifdef FEAT_FLOAT generate_PUSHF(cctx, 0.0); @@ -3843,6 +3840,7 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx) case VAR_NUMBER: case VAR_UNKNOWN: case VAR_VOID: + case VAR_SPECIAL: // cannot happen generate_PUSHNR(cctx, 0); break; } |