Mercurial > vim
comparison src/vim9script.c @ 22004:a9e60176dcd3 v8.2.1551
patch 8.2.1551: Vim9: error for argument type does not mention the number
Commit: https://github.com/vim/vim/commit/8b565c2c1522e0c41e3d18e1bb6e1bc4b3686842
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 30 23:24:20 2020 +0200
patch 8.2.1551: Vim9: error for argument type does not mention the number
Problem: Vim9: error for argument type does not mention the number.
Solution: Pass the argument number to where the error is given.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 30 Aug 2020 23:30:04 +0200 |
parents | a211bca98bc3 |
children | 7899b4e2880c |
comparison
equal
deleted
inserted
replaced
22003:b22488a6de96 | 22004:a9e60176dcd3 |
---|---|
578 if (sv->sv_const) | 578 if (sv->sv_const) |
579 { | 579 { |
580 semsg(_(e_readonlyvar), name); | 580 semsg(_(e_readonlyvar), name); |
581 return FAIL; | 581 return FAIL; |
582 } | 582 } |
583 return check_typval_type(sv->sv_type, value); | 583 return check_typval_type(sv->sv_type, value, 0); |
584 } | 584 } |
585 } | 585 } |
586 iemsg("check_script_var_type(): not found"); | 586 iemsg("check_script_var_type(): not found"); |
587 return OK; // not really | 587 return OK; // not really |
588 } | 588 } |