patch 8.2.1753: Vim9: crash when using import at script level

Problem:    Vim9: crash when using import at script level.
Solution:   Give a "not implemented yet" error. (closes #7026)
This commit is contained in:
Bram Moolenaar 2020-09-27 13:51:14 +02:00
parent daff0fb738
commit f6a44f714a
2 changed files with 7 additions and 0 deletions

View File

@ -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);

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1753,
/**/
1752,
/**/