Mercurial > vim
comparison src/vim9compile.c @ 23515:8cce160b9183 v8.2.2300
patch 8.2.2300: Vim9: wrong order on type stack when using dict
Commit: https://github.com/vim/vim/commit/d62d87d8f3f337a25b7da72abf55fc8a4bb6100c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 4 17:40:12 2021 +0100
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 https://github.com/vim/vim/issues/7619)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 04 Jan 2021 17:45:03 +0100 |
parents | 872239543313 |
children | 36bf9a6fbd4c |
comparison
equal
deleted
inserted
replaced
23514:4ef3685b280a | 23515:8cce160b9183 |
---|---|
3024 char_u *p; | 3024 char_u *p; |
3025 int is_const; | 3025 int is_const; |
3026 int is_all_const = TRUE; // reset when non-const encountered | 3026 int is_all_const = TRUE; // reset when non-const encountered |
3027 | 3027 |
3028 if (d == NULL) | 3028 if (d == NULL) |
3029 return FAIL; | |
3030 if (generate_ppconst(cctx, ppconst) == FAIL) | |
3029 return FAIL; | 3031 return FAIL; |
3030 for (;;) | 3032 for (;;) |
3031 { | 3033 { |
3032 char_u *key = NULL; | 3034 char_u *key = NULL; |
3033 | 3035 |