Steps to reproduce
Run this shell command:
vim -Nu NONE -S <(tee <<'EOF'
vim9script
def Func()
var qfl = {}
cexpr qfl
enddef
Func()
EOF
)
An error is given on line 1:
line 1:
E777: String or List expected
Expected behavior
The error is given on line 2:
line 1:
E777: String or List expected
Because the command responsible for the error is :cexpr qfl, which is on line 2; not on line 1.
Version of Vim
9.0 Included patches: 1-50
Environment
Operating system: Ubuntu 20.04.4 LTS
Terminal: xterm
Value of $TERM: xterm-256color
Shell: GNU bash, version 5.0.17
Additional context
No issue at the script level:
vim9script var qfl = {} cexpr qfl
line 3:
E777: String or List expected
The error is given on line 3, which is correct.
The error is given at runtime. It would help if it was given earlier; i.e. at compile time.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #10735 as completed via bd683e3.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()