comparison src/vim9script.c @ 27611:e311a80f8cbe v8.2.4332

patch 8.2.4332: Vim9: incomplete test for existing script variable in block Commit: https://github.com/vim/vim/commit/dce2441a603f2c9343a4a46091283a32420d80a2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 8 20:35:30 2022 +0000 patch 8.2.4332: Vim9: incomplete test for existing script variable in block Problem: Vim9: incomplete test for existing script variable in block. Solution: Add a couple more tests. Fix uncovered problem.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Feb 2022 21:45:03 +0100
parents db1831f585a4
children 42d0279c6e7c
comparison
equal deleted inserted replaced
27610:81772f743738 27611:e311a80f8cbe
598 { 598 {
599 semsg(_(e_name_already_defined_str), as_name); 599 semsg(_(e_name_already_defined_str), as_name);
600 goto erret; 600 goto erret;
601 } 601 }
602 else if (imported == NULL 602 else if (imported == NULL
603 && check_defined(as_name, STRLEN(as_name), cctx, FALSE) == FAIL) 603 && check_defined(as_name, STRLEN(as_name), cctx, NULL,
604 FALSE) == FAIL)
604 goto erret; 605 goto erret;
605 606
606 if (imported == NULL) 607 if (imported == NULL)
607 { 608 {
608 imported = new_imported(import_gap); 609 imported = new_imported(import_gap);