Mercurial > vim
comparison src/testdir/test_vim9_assign.vim @ 33527:9dee279ce1c4 v9.0.2012
patch 9.0.2012: Vim9: error message can be more accurate
Commit: https://github.com/vim/vim/commit/f8da32461969a657ce9f132f35ddbec4068d3296
Author: Ernie Rael <errael@raelity.com>
Date: Wed Oct 11 21:22:12 2023 +0200
patch 9.0.2012: Vim9: error message can be more accurate
Problem: Vim9: error message can be more accurate
Solution: Fix the error messages
Fix message for some single use error messages.
closes: #13312
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 11 Oct 2023 21:30:08 +0200 |
parents | 3de472480e91 |
children | 1fcb7c9dc546 |
comparison
equal
deleted
inserted
replaced
33526:98b41f1adbc1 | 33527:9dee279ce1c4 |
---|---|
1276 | 1276 |
1277 lines =<< trim END | 1277 lines =<< trim END |
1278 var n: any | 1278 var n: any |
1279 n.key = 5 | 1279 n.key = 5 |
1280 END | 1280 END |
1281 v9.CheckDefExecAndScriptFailure(lines, ['E1148:', 'E1203: Dot can only be used on a dictionary: n.key = 5'], 2) | 1281 v9.CheckDefExecAndScriptFailure(lines, ['E1148:', 'E1203: Dot not allowed after a number: n.key = 5'], 2) |
1282 enddef | 1282 enddef |
1283 | 1283 |
1284 def Test_assignment_local() | 1284 def Test_assignment_local() |
1285 # Test in a separated file in order not to the current buffer/window/tab is | 1285 # Test in a separated file in order not to the current buffer/window/tab is |
1286 # changed. | 1286 # changed. |