[vim/vim] vim9: error in compileing unpack tuple (Issue #21057)

3 views
Skip to first unread message

Mao-Yining

unread,
Aug 15, 2026, 9:41:00 AM (21 hours ago) Aug 15
to vim/vim, Subscribed
mao-yining created an issue (vim/vim#21057)

Steps to reproduce

vim9script
var d: dict<tuple<dict<any>, list<any>>>
def A(): tuple<dict<any>, list<any>>
		return ({}, [])
enddef
def B()
		var [a; b] = d->get('a', (-1, {}, []))
		b = A()
		echo typename(b)
enddef
B()

Compile Error E1012: Type mismatch; expected list<any> but got tuple<dict<any>, list<any>>

Expected behaviour

Compile succesfully

Version of Vim

9.2.925

Environment

MS-Windows 11

Logs and stack traces


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/issues/21057@github.com>

Reply all
Reply to author
Forward
0 new messages