summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-27 13:51:14 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-27 13:51:14 +0200
commitf6a44f714a383a69db05cb47e26abffd966cd6a5 (patch)
treee220176bd88abcc2e97624c6363d4d9a73b2621e /src
parentdaff0fb73851ef368ede180dbb3b772e55304ba7 (diff)
patch 8.2.1753: Vim9: crash when using import at script levelv8.2.1753
Problem: Vim9: crash when using import at script level. Solution: Give a "not implemented yet" error. (closes #7026)
Diffstat (limited to 'src')
-rw-r--r--src/evalvars.c5
-rw-r--r--src/version.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/evalvars.c b/src/evalvars.c
index 087a0cbdb9..3571169370 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -2486,6 +2486,11 @@ eval_variable(
rettv->vval.v_string = vim_strsave(import->imp_funcname);
}
}
+ else if (import->imp_all)
+ {
+ emsg("Sorry, 'import * as X' not implemented yet");
+ ret = FAIL;
+ }
else
{
scriptitem_T *si = SCRIPT_ITEM(import->imp_sid);
diff --git a/src/version.c b/src/version.c
index 149a3ff212..f3dbf2808a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1753,
+/**/
1752,
/**/
1751,