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)
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim
index bdced02..749b8e8 100644
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -1032,7 +1032,7 @@
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