We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
In Vim9 script, flattening a list of lists might make Vim crash.
To Reproduce
Run this shell command:
vim -Nu NONE -S <(cat <<'EOF' vim9script def Func() var ll: list<list<string>> = [['a', 'b', 'c']] ll->flattennew()->join()->setline(1) enddef Func() EOF )
Vim crashes.
Expected behavior
Vim doesn't crash. a b c is written on the first line of the buffer.
a b c
Environment
Additional context
Regression introduced in patch 8.2.3422.
No crash if we don't declare the type of ll, and rely on type inferrence:
ll
vim9script def Func() var ll = [['a', 'b', 'c']] ll->flattennew()->join()->setline(1) enddef Func()
No crash at the script level; but there is still an unexpected type mismatch error:
vim9script var ll: list<list<string>> = [['a', 'b', 'c']] ll->flattennew()->join()->setline(1)
E1012: Type mismatch; expected list<string> but got string
The text was updated successfully, but these errors were encountered:
b3bf33a
No branches or pull requests
Describe the bug
In Vim9 script, flattening a list of lists might make Vim crash.
To Reproduce
Run this shell command:
Vim crashes.
Expected behavior
Vim doesn't crash.
a b c
is written on the first line of the buffer.Environment
Additional context
Regression introduced in patch 8.2.3422.
No crash if we don't declare the type of
ll
, and rely on type inferrence:No crash at the script level; but there is still an unexpected type mismatch error:
The text was updated successfully, but these errors were encountered: