Mercurial > vim
comparison src/eval.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 | ddfb5f5b2ce5 |
children | 514d622473af |
comparison
equal
deleted
inserted
replaced
22003:b22488a6de96 | 22004:a9e60176dcd3 |
---|---|
1289 } | 1289 } |
1290 } | 1290 } |
1291 else | 1291 else |
1292 { | 1292 { |
1293 if (lp->ll_type != NULL | 1293 if (lp->ll_type != NULL |
1294 && check_typval_type(lp->ll_type, rettv) == FAIL) | 1294 && check_typval_type(lp->ll_type, rettv, 0) == FAIL) |
1295 return; | 1295 return; |
1296 set_var_const(lp->ll_name, lp->ll_type, rettv, copy, flags); | 1296 set_var_const(lp->ll_name, lp->ll_type, rettv, copy, flags); |
1297 } | 1297 } |
1298 *endp = cc; | 1298 *endp = cc; |
1299 } | 1299 } |