[vim/vim] vim9: error in compileing unpack tuple (Issue #21057)
Mao-Yining (Vim Github Repository) <[email protected]>
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/issues/[email protected]> |
mao-yining created an issue (vim/vim#21057)
### Steps to reproduce
```vim
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
```shell
```
--
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/issues/21057
You are receiving this because you are subscribed to this thread.
Message ID: <vim/vim/issues/[email protected]>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/21057%40github.com.