Mercurial > vim
comparison src/testdir/test_vim9_expr.vim @ 28263:c446812efd60 v8.2.4657
patch 8.2.4657: errors for functions are sometimes hard to read
Commit: https://github.com/vim/vim/commit/a6c18d38ca2df0a92403f2265a480d9dba08290f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 31 20:02:56 2022 +0100
patch 8.2.4657: errors for functions are sometimes hard to read
Problem: Errors for functions are sometimes hard to read.
Solution: Use printable_func_name() in more places.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 31 Mar 2022 21:15:03 +0200 |
parents | 66b245d84f37 |
children | 909994047400 |
comparison
equal
deleted
inserted
replaced
28262:59a7125e87f4 | 28263:c446812efd60 |
---|---|
4008 call v9.CheckDefAndScriptFailure(["var asdf = v:nosuch"], ['E1001:', 'E121:'], 1) | 4008 call v9.CheckDefAndScriptFailure(["var asdf = v:nosuch"], ['E1001:', 'E121:'], 1) |
4009 | 4009 |
4010 call v9.CheckDefFailure(["echo len('asdf'"], 'E110:', 2) | 4010 call v9.CheckDefFailure(["echo len('asdf'"], 'E110:', 2) |
4011 call v9.CheckScriptFailure(['vim9script', "echo len('asdf'"], 'E116:', 2) | 4011 call v9.CheckScriptFailure(['vim9script', "echo len('asdf'"], 'E116:', 2) |
4012 | 4012 |
4013 call v9.CheckDefAndScriptFailure(["echo Func0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789()"], ['E1011:', 'E117:'], 1) | 4013 call v9.CheckDefAndScriptFailure(["echo Func01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789()"], ['E1011:', 'E117:'], 1) |
4014 call v9.CheckDefAndScriptFailure(["echo doesnotexist()"], 'E117:', 1) | 4014 call v9.CheckDefAndScriptFailure(["echo doesnotexist()"], 'E117:', 1) |
4015 endfunc | 4015 endfunc |
4016 | 4016 |
4017 " vim: shiftwidth=2 sts=2 expandtab | 4017 " vim: shiftwidth=2 sts=2 expandtab |