1
0
forked from aniani/vim

patch 8.2.2194: Vim9: cannot use :const or :final at the script level

Problem:    Vim9: cannot use :const or :final at the script level.
Solution:   Support using :const and :final. (closes #7526)
This commit is contained in:
Bram Moolenaar
2020-12-22 21:19:39 +01:00
parent 3bdc90b7df
commit 89b474dd4f
5 changed files with 70 additions and 15 deletions

View File

@@ -1032,7 +1032,7 @@ def Test_vim9script_call_fail_const()
call Change()
unlet g:Aconst
END
CheckScriptFailure(lines, 'E741: Value is locked: Aconst', 2)
CheckScriptFailure(lines, 'E1122: Variable is locked: Aconst', 2)
enddef
" Test that inside :function a Python function can be defined, :def is not