mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.3152: Vim9: accessing "s:" results in an error
Problem: Vim9: accessing "s:" results in an error. Solution: Do not try to lookup a script variable for "s:". (closes #8549)
This commit is contained in:
@@ -2478,6 +2478,13 @@ def Test_expr7_dict_vim9script()
|
||||
else
|
||||
CheckDefAndScriptFailure(lines, 'E117:', 0)
|
||||
endif
|
||||
|
||||
lines =<< trim END
|
||||
vim9script
|
||||
var x = 99
|
||||
assert_equal({x: 99}, s:)
|
||||
END
|
||||
CheckScriptSuccess(lines)
|
||||
enddef
|
||||
|
||||
def Test_expr7_call_2bool()
|
||||
|
Reference in New Issue
Block a user