forked from aniani/vim
patch 8.2.1272: Vim9: type not checked if declaration also assigns value
Problem: Vim9: type not checked if declaration also assigns value. Solution: Check the type. (issue #6507)
This commit is contained in:
@@ -557,7 +557,7 @@ check_script_var_type(typval_T *dest, typval_T *value, char_u *name)
|
||||
semsg(_(e_readonlyvar), name);
|
||||
return FAIL;
|
||||
}
|
||||
return check_type(sv->sv_type, typval2type(value), TRUE);
|
||||
return check_typval_type(sv->sv_type, value);
|
||||
}
|
||||
}
|
||||
iemsg("check_script_var_type(): not found");
|
||||
|
Reference in New Issue
Block a user