vim9script
if true
var lines = ['a']
lines->filter((_, _) => true)
endif
var lines = []
def F()
lines->add('c')
enddef
F()
Throw E1001: Variable not found: lines.
The script-level variable lines should be accessible inside function F().
9.2.0329
MS-Windows GUI
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Found this problem when preparing #19915
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()