[vim/vim] Vim9: wrong type for the rest of a tuple in an unpack assignment (PR #21059)

1 view
Skip to first unread message

h_east

unread,
Aug 15, 2026, 12:11:27 PM (19 hours ago) Aug 15
to vim/vim, Subscribed
Problem:  In an unpack assignment the variable after the ";" gets the type
          of the whole tuple instead of the type of the remaining items.
          When the assigned value has type "any" it even gets a list type,
          so that a tuple cannot be assigned to it later.
Solution: Give the variable the type of the remaining items.  Keep "any"
          when it is not known whether a list or a tuple is assigned.

fixes: #21057
fixes: #21058


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/21059

Commit Summary

  • 0f294ab Vim9: wrong type for the rest of a tuple in an unpack assignment

File Changes

(4 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21059@github.com>

h_east

unread,
Aug 15, 2026, 12:46:42 PM (18 hours ago) Aug 15
to vim/vim, Subscribed
h-east left a comment (vim/vim#21059)

Updated vim9.txt.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21059/c5303227509@github.com>

Reply all
Reply to author
Forward
0 new messages