commit | d62d87d8f3f337a25b7da72abf55fc8a4bb6100c | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jan 04 17:40:12 2021 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jan 04 17:40:12 2021 +0100 |
tree | 2f3fd08cc915f6828cd3eb58a6c333ed8b956acc | |
parent | d1510ee9469f623c872a18b6e3c3666c0fb23c58 [diff] [blame] |
patch 8.2.2300: Vim9: wrong order on type stack when using dict Problem: Vim9: wrong order on type stack when using dict. Solution: Generate constants before a dict. (closes #7619)
diff --git a/src/vim9compile.c b/src/vim9compile.c index 4007641..0d19b7d 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -3027,6 +3027,8 @@ if (d == NULL) return FAIL; + if (generate_ppconst(cctx, ppconst) == FAIL) + return FAIL; for (;;) { char_u *key = NULL;