Mercurial > vim
diff src/vim9.h @ 20859:876e16c48bd1 v8.2.0981
patch 8.2.0981: Vim9: cannot compile "[var, var] = list"
Commit: https://github.com/vim/vim/commit/47a519a933e8bcaf703a5feaac5c01491a658ee3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 14 23:05:10 2020 +0200
patch 8.2.0981: Vim9: cannot compile "[var, var] = list"
Problem: Vim9: cannot compile "[var, var] = list".
Solution: Implement list assignment.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Jun 2020 23:15:04 +0200 |
parents | e29b2ec8d4d2 |
children | 65d9189d4dca |
line wrap: on
line diff
--- a/src/vim9.h +++ b/src/vim9.h @@ -112,6 +112,7 @@ typedef enum { // expression operations ISN_CONCAT, ISN_INDEX, // [expr] list index + ISN_GETITEM, // push list item, isn_arg.number is the index ISN_MEMBER, // dict[member] ISN_STRINGMEMBER, // dict.member using isn_arg.string ISN_2BOOL, // convert value to bool, invert if isn_arg.number != 0