You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vim9scriptimport"./lib.vim"as lib
constx=1var result = lib.Noop(x)->lib.Noop()->lib.Noop() # OK
result = lib.Noop(x)
->lib.Noop()->lib.Noop() # OK
result = lib.Noop(x)
->lib.Noop()
->lib.Noop() # ERROR
Result:
E1013: Argument 1: type mismatch, expected number but got func(number): number
Expected behaviour
The script should execute without errors, as per :help vim9-line-continuation:
For a method call using "->" and a member using a dot, a line break is allowed before it
Version of Vim
9.0.1065
Environment
OS: macOS 13.1
Terminal: Apple Terminal
$TERM: xterm-256color
Shell: ZSH
Logs and stack traces
No response
The text was updated successfully, but these errors were encountered:
Edit: use a much simpler example.
Steps to reproduce
lib.vim
with the following content:Result:
Expected behaviour
The script should execute without errors, as per
:help vim9-line-continuation
:Version of Vim
9.0.1065
Environment
OS: macOS 13.1
Terminal: Apple Terminal
$TERM: xterm-256color
Shell: ZSH
Logs and stack traces
No response
The text was updated successfully, but these errors were encountered: